Versions in this module Expand all Collapse all v1 v1.0.8 Jul 8, 2022 Changes in this version + const NanoGap + var ErrorCannotSet = errors.New("can not set") + func AbsInt64(n int64) int64 + func BeginningOfMonth(t time.Time) time.Time + func CalcCurrentTimeGap(d string) (time.Time, error) + func CheckFileExist(filePath string) (exist bool) + func CheckPathExist(path string) bool + func ConcatBytes(arr ...[]byte) []byte + func ConcatStrings(arr ...[]string) []string + func CreateDirPath(dirPath string) error + func CreateFilePath(filePath string) error + func CurrentMilliseconds() int64 + func CurrentTime() string + func Decrypt(raw string, hashPassword string) int + func Encrypt(key string) string + func EncryptWithSalt(key string, salt string) string + func EndOfMonth(t time.Time) time.Time + func GBK2UTF8(s []byte) (string, error) + func GenUUID() string + func GetEnvInt(key string) int + func GetEnvString(key string) string + func GetInternalIPAddress() (string, error) + func IndexOfInt32(s []int32, d int32) int + func IndexOfString(s []string, substr string) int + func InitLog(debug bool, logFile string) *zap.Logger + func InitRotateLog(debug bool, logFile string) *zap.Logger + func InitStructFromEnv(i interface{}) reflect.Value + func MD5(s string) string + func MD5Byte(b []byte) string + func Max(x, y int64) int64 + func MaxInt(x, y int) int + func MaxInt32(x, y int32) int32 + func Min(x, y int64) int64 + func MinInt(x, y int) int + func MinInt32(x, y int32) int32 + func PrintEnvKey(i interface{}) + func RandString(n int) string + func ToDateTimeString(i interface{}, s string) string + func UTF82GBK(s string) ([]byte, error)