Documentation ¶
Index ¶
- func DataSize(size uint64) string
- func ElapsedTime(startTime time.Time) string
- func Float(s string) (float64, error)
- func HowLongAgo(sec int64) string
- func Int(in interface{}) (int, error)
- func Int64(in interface{}) (int64, error)
- func MustFloat(s string) float64
- func MustInt(in interface{}) int
- func MustInt64(in interface{}) int64
- func MustUint(in interface{}) uint64
- func Percent(val, total int) float64
- func ToFloat(s string) (float64, error)
- func ToInt(in interface{}) (iVal int, err error)
- func ToInt64(in interface{}) (i64 int64, err error)
- func ToUint(in interface{}) (u64 uint64, err error)
- func Uint(in interface{}) (uint64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ElapsedTime ¶
ElapsedTime calc elapsed time 计算运行时间消耗 单位 ms(毫秒)
func MustUint ¶ added in v0.2.2
func MustUint(in interface{}) uint64
MustUint convert string to uint
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.