go-util
Go go-gin-api /pkg
go get github.com/xinliangnote/go-util
- aes
- base64
- base64.Encode
- base64.Decode
- convert
- convert.StrToInt64
- convert.StrToInt32
- convert.StrToInt
- convert.StrToFloat64
- convert.StrToByte
- convert.IntToStr
- convert.IntToInt32
- convert.IntToInt64
- convert.Int32ToInt
- convert.Int32ToInt64
- convert.Int64ToInt
- convert.Int64ToInt32
- convert.Int64ToStr
- hashids
- hashids.Encrypt
- hashids.Decrypt
- json
- mail
- math
- math.RoundedFixed n -
- math.TruncRound n -
- md5
- rsa
- rsa.PublicEncrypt
- rsa.PrivateDecrypt
- time
- time.GetCurrentDate -
- time.GetCurrentUnix - Unix
- time.GetCurrentMilliUnix -
- time.GetCurrentNanoUnix -
- uuid
- validator
- uuidgithub.com/google/uuid
- gomail.v2gopkg.in/gomail.v2
- go-hashidsgithub.com/speps/go-hashids