Documentation ¶
Overview ¶
Package util contains utility functions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DiskUsage ¶ added in v0.0.11
type DiskUsage struct { Total uint64 // total size of the file system Used uint64 // total bytes used in file system Free uint64 // total free bytes on file system Available uint64 // total available bytes on file system to an unprivileged user Percent float64 // percentage of use on the file system Path string }
DiskUsage contains usage data.
func NewDiskUsage ¶ added in v0.0.11
NewDiskUsage returns the DiskUsage instance of path or nil in case of error.
Click to show internal directories.
Click to hide internal directories.