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", } )
View Source
var FactdVersion = "unknown"
FactdVersion will be set via init. In the default command implementation it is passed from the build process
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
Types ¶
Click to show internal directories.
Click to hide internal directories.