Documentation
¶
Index ¶
- func FormatStringToFloat(s string) (float64, error)
- func FormatStringToInt(s string) (int64, error)
- func JSONLoad(filename string, v interface{}) error
- func MD5(s string) string
- func Now32() int
- func StructCopy(dst interface{}, src interface{}) (err error)
- func WeekCount(t time.Time, timeZone int64) int
- func WeightRand(data map[int]int) int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatStringToFloat ¶
FormatStringToFloat 格式化string为float64
func FormatStringToInt ¶
FormatStringToInt 格式化string为int64
func StructCopy ¶
func StructCopy(dst interface{}, src interface{}) (err error)
StructCopy dst should be a pointer to struct, src should be a struct
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.