Documentation
¶
Index ¶
- Variables
- func DataSize(size uint64) string
- func ElapsedTime(startTime time.Time) string
- func Float(in interface{}) (float64, error)
- func HowLongAgo(sec int64) string
- func Int(in interface{}) (int, error)
- func Int64(in interface{}) (int64, error)
- func MustFloat(in interface{}) float64
- func MustInt(in interface{}) int
- func MustInt64(in interface{}) int64
- func MustUint(in interface{}) uint64
- func Percent(val, total int) float64
- func ToFloat(in interface{}) (f64 float64, err 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 ¶
View Source
var (
ErrConvertFail = errors.New("convert data type is failure")
)
Functions ¶
func ElapsedTime ¶
ElapsedTime calc elapsed time 计算运行时间消耗 单位 ms(毫秒)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.