Documentation ¶
Index ¶
- Constants
- func Duration2Str(t time.Duration) string
- func Duration2StrWithLanguage(t time.Duration, languageCode language.LanguageCode) string
- func Flow2B(fileSize int64) (size string)
- func Flow2Str(fileSize int64) (size string)
- func FormatInt64(val int64, prec int) string
- func GetUnitCode2Show(unitCode UnitCode, languageCode language.LanguageCode) string
- func Size2B(fileSize int64) string
- func Size2Str(fileSize int64) string
- func Size2b(fileSize int64) string
- func Speed2Bs(speed float64) string
- func Speed2Str(speed float64) string
- func Speed2bps(speed float64) string
- type UnitCode
Constants ¶
Variables ¶
This section is empty.
Functions ¶
func Duration2Str ¶
func Duration2StrWithLanguage ¶
func Duration2StrWithLanguage(t time.Duration, languageCode language.LanguageCode) string
func FormatInt64 ¶
func GetUnitCode2Show ¶
func GetUnitCode2Show(unitCode UnitCode, languageCode language.LanguageCode) string
Types ¶
Click to show internal directories.
Click to hide internal directories.