Description

Partitions returns disk partitions. If all is false, returns physical devices only (e.g. hard disks, cd-rom drives, USB keys) and ignore all others (e.g. memory partitions such as /dev/shm)

should use setmntent(3) but this implement use /etc/mtab file

Partitions is referenced in 8 repositories

github.com/shirou/gopsutil github.com/ostrost/ostent github.com/miniwark/tyu

...