Documentation ¶ Rendered for linux/amd64 windows/amd64 darwin/amd64 js/wasm Index ¶ func SameDisk(di1, di2 Info) bool type Info func GetInfo(path string) (info Info, err error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func SameDisk ¶ func SameDisk(di1, di2 Info) bool SameDisk reports whether di1 and di2 describe the same disk. Types ¶ type Info ¶ type Info struct { Total uint64 Free uint64 Used uint64 Files uint64 Ffree uint64 FSType string } Info stat fs struct is container which holds following values Total - total size of the volume / disk Free - free size of the volume / disk Files - total inodes available Ffree - free inodes available FSType - file system type func GetInfo ¶ func GetInfo(path string) (info Info, err error) GetInfo returns total and free bytes available in a directory, e.g. `/`. Source Files ¶ View all Source files disk.gostat_linux.gotype_linux.go Click to show internal directories. Click to hide internal directories.