Categorygithub.com/shengbox/go-util
module
0.0.0-20240628155045-40042bd00b68
Repository: https://github.com/shengbox/go-util.git
Documentation: pkg.go.dev

# README

go-util

来源于github.com/xinliangnote/go-util。

安装

go get github.com/shengbox/go-util

方法

  • aes
    • aes.Encrypt
    • aes.Decrypt
  • 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
    • json.Encode
    • json.Decode
  • mail
    • mail.Send
  • math
    • math.RoundedFixed 小数点后 n 位 - 四舍五入
    • math.TruncRound 小数点后 n 位 - 舍去
  • md5
    • md5.MD5
  • rsa
    • rsa.PublicEncrypt
    • rsa.PrivateDecrypt
  • time
    • time.GetCurrentDate 获取当前的时间 - 字符串
    • time.GetCurrentUnix 获取当前的时间 - Unix时间戳
    • time.GetCurrentMilliUnix 获取当前的时间 - 毫秒级时间戳
    • time.GetCurrentNanoUnix 获取当前的时间 - 纳秒级时间戳
  • uuid
    • uuid.GenUUID
  • validator
    • validator.Empty

依赖

  • uuid:github.com/google/uuid
  • gomail.v2:gopkg.in/gomail.v2
  • go-hashids:github.com/speps/go-hashids

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author