Documentation ¶
Index ¶
- func BytesToInt64(buf []byte) int64
- func CalRequestSign(request map[string]string, secret string) string
- func CheckSum(data []byte) uint16
- func GetCurrTime() int64
- func GetCurrTimeMicors() int64
- func GetCurrTimeMs() int64
- func GetCurrTimeNs() int64
- func GetDurationMicros(begin time.Time) int64
- func GetDurationMillis(begin time.Time) int64
- func GetInternalIP() (string, error)
- func GetTraceId() string
- func Hostname() (string, error)
- func IdcName() string
- func Int64ToBytes(i int64) []byte
- func Md5(str string) string
- func Mkdir(dir string, perm os.FileMode) (bool, error)
- func OpenFile(path string, filename string, flag int, perm os.FileMode) (*os.File, error)
- func PathExists(path string) (bool, error)
- func Sha1(args ...string) string
- func StringArrayHas(data []string, needle string) bool
- func StringArrayIntersect(src []string, dst []string) []string
- func StructToJson(data interface{}) string
- func TransferISO2Timestamp(isoTime string) (int64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BytesToInt64 ¶
func GetCurrTime ¶
func GetCurrTime() int64
func GetCurrTimeMicors ¶
func GetCurrTimeMicors() int64
func GetCurrTimeMs ¶
func GetCurrTimeMs() int64
func GetCurrTimeNs ¶
func GetCurrTimeNs() int64
func GetInternalIP ¶
func GetTraceId ¶
func GetTraceId() string
func Int64ToBytes ¶
func PathExists ¶
func StringArrayHas ¶
func StringArrayIntersect ¶
func StructToJson ¶
func StructToJson(data interface{}) string
func TransferISO2Timestamp ¶
iso-time 转换为 时间戳
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.