Documentation
¶
Index ¶
- func ByteToFloat64(bytes []byte) float64
- func BytesToInt(bys []byte) int
- func BytesToInt64(bys []byte) int64
- func Cost(t time.Time, label ...string)
- func Decimal(v float64) float64
- func DeepCopy(dst, src interface{}) error
- func Difference(slice1, slice2 []string) []string
- func DownloadPictureBytes(url string, timeout time.Duration) (res []byte, err error)
- func Float64ToByte(float float64) []byte
- func GetCurrentDirectory() string
- func GetTodayZeroPoint() int64
- func GetTodayZeroPointTime() time.Time
- func GetYesterdayZeroPoint() int64
- func Int64ToBytes(data int64) []byte
- func IntToBytes(n int) []byte
- func Intersect(slice1, slice2 []string) []string
- func Ints2String(ints []int) string
- func IsFileExists(path string) (bool, error)
- func IsSliceEqual(a, b interface{}) bool
- func Kv2MapInt(in []Kv) (out map[int]int)
- func Kv2MapStr(in []Kv) (out map[string]string)
- func KvFormat(in []Kv) string
- func LabelsToString(labels map[string]string) string
- func MapKeyString2Int(in map[string]int) (out map[int]int)
- func MergeLabels(old map[string]string, new map[string]string) map[string]string
- func Microsecond() int64
- func Millisecond() int64
- func String2Timestamp(str string) int64
- func SyncMapLen(m *sync.Map) int
- func Timestamp2String(timestamp int) string
- func Timestamp2String64(timestamp int64) string
- func Union(slice1, slice2 []string) []string
- type Kv
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BytesToInt ¶
func BytesToInt64 ¶
func DownloadPictureBytes ¶
func Int64ToBytes ¶
func IntToBytes ¶
func Ints2String ¶
func LabelsToString ¶
func MergeLabels ¶
MergeLabels merge label the new map will overwrite the old one. e.g. new: {"foo": "newbar"} old: {"foo": "bar"} will return {"foo": "newbar"}
func Microsecond ¶
func Microsecond() int64
func Millisecond ¶
func Millisecond() int64
func SyncMapLen ¶
func Timestamp2String64 ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.