Documentation
¶
Index ¶
Constants ¶
View Source
const BinaryConvertThreshold = 1024
BinaryConvertThreshold is the number for a binary "step"
Variables ¶
View Source
var BinarySuffixPrefixes = map[float64]string{
1125899906842624: "%.2f PB",
1099511627776: "%.2f TB",
1073741824: "%.2f GB",
1048576: "%.2f MB",
1024: "%.1f kB",
0: "%.0f bytes",
}
BinarySuffixPrefixes are the floats with the specific binary suffix string fmt.
View Source
var ForbiddenWords = []string{
"id",
}
ForbiddenWords are words that will be removed from text (in Humanize func)
Functions ¶
func BinarySuffix ¶
BinarySuffix returns the given number with a binary suffix.
func Humanize ¶
Humanize a string means to remove underscores and return string as lower. String can be capitalized
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.