Documentation
¶
Index ¶
- func CheckErr(err error, message string)
- func CheckWorkTime(work_time string, t time.Time) bool
- func CpuNum() int
- func EnsureDir(dirName string) error
- func FileExists(path string) bool
- func GenerateRandomString(length int) string
- func GetCurrentDirectory() string
- func GetLocalIp() string
- func GetLogPath(curPath string) string
- func HmacSHA1(data, key string) []byte
- func IndexOfSlice(item string, slice []string) int
- func IsJson(data string) bool
- func LocalMac() string
- func OutOfInfo(data string, startCount, endCount int) string
- func RandomInt(end int) int
- func RunFuncName() string
- func StrFirstToLower(str string) string
- func StrFirstToUpper(str string) string
- func Struct2Map(obj interface{}) map[string]interface{}
- func Timestamp() int64
- func ToMd5(str string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FileExists ¶
func GenerateRandomString ¶ added in v0.0.6
func GetCurrentDirectory ¶
func GetCurrentDirectory() string
func GetLocalIp ¶
func GetLocalIp() string
func GetLogPath ¶
func RunFuncName ¶
func RunFuncName() string
func StrFirstToLower ¶
func StrFirstToUpper ¶
func Struct2Map ¶
func Struct2Map(obj interface{}) map[string]interface{}
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.