Documentation
¶
Index ¶
- Constants
- func CanReadFile(path string) bool
- func CommandExists(cmd string) bool
- func ConvertNetworkUnitOfMeasureToID(measure string) uint8
- func ConvertToUnitOfMeasure(value float64, measureId uint8) float64
- func FileExists(filename string) bool
- func GetNetworkUnitOfMeasure(measureId uint8) string
- func ReadFileToString(path string) (string, error)
- func StripSpecialChars(str string, forceLower bool) string
- func ValuePrecision(value float64, precision int) float64
Constants ¶
View Source
const ( Byte = 0 KB = 1 MB = 2 GB = 3 TB = 4 KB_DIV = float64(1 << 10) MB_DIV = float64(1 << 20) GB_DIV = float64(1 << 30) TB_DIV = float64(1 << 40) )
Variables ¶
This section is empty.
Functions ¶
func ConvertNetworkUnitOfMeasureToID ¶
Return String Measure to Measure ID
func ConvertToUnitOfMeasure ¶
Convert Unit of Measure
func FileExists ¶
func GetNetworkUnitOfMeasure ¶
Return Network Unit of Measure
func StripSpecialChars ¶
Strip Special Characters
func ValuePrecision ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.