Documentation ¶
Overview ¶
Package gomounts implements a cross-platform library for retrieving mounted filesystem volumes.
Author: Clint Caywood
https://github.com/cratonica/gomounts
Example ¶
package main import ( "github.com/strib/gomounts" "log" ) func main() { volumes, err := gomounts.GetMountedVolumes() if err == nil { for _, v := range volumes { // Windows might print "Volume of type NTFS is mounted at C:\" // Unix might print "Volume of type ext3 is mounted at /media/HD1" log.Printf("Volume of type %s is mounted at %s", v.Type, v.Path) } } }
Output:
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.