Documentation ¶
Index ¶
- func FormatBits(bits int64) string
- func FormatBytes(bytes int64) string
- func FormatCount(count int64) string
- func FormatFloat(f any, decimal int) string
- func FormatFloat2(f any) string
- func FormatInt(value int) string
- func FormatInt64(value int64) string
- func PadFloatZero(s string, countZero int) string
- func Pow1024(n int) int64
- func TrimZeroSuffix(s string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatBits ¶ added in v0.0.10
func FormatBytes ¶ added in v0.0.9
func FormatCount ¶ added in v0.4.0
func FormatFloat ¶ added in v0.4.7
func FormatFloat2 ¶ added in v0.4.7
func FormatInt64 ¶
func PadFloatZero ¶ added in v1.0.4
PadFloatZero 为浮点型数字字符串填充足够的0
func TrimZeroSuffix ¶ added in v0.5.6
TrimZeroSuffix 去除小数数字尾部多余的0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.