Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ByteUnits is a k=>v map of units for conversion ByteUnits = map[int]string{ 0: "B", 1: "kB", 2: "MB", 3: "GB", 4: "TB", } )
Functions ¶
func ConvertBytes ¶
ConvertBytes converts bytes to the highest possible unit
func ConvertBytesTo ¶
ConvertBytesTo converts bytes to the specified unit
func ConvertNetmask ¶
ConvertNetmask converts CIDR (netmask) to Netmask
func GetHostEtc ¶
func GetHostEtc() string
func GetHostProc ¶
func GetHostProc() string
func GetHostSys ¶
func GetHostSys() string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.