Giter VIP home page Giter VIP logo

util's Introduction

util

工具类集合 Go 工具包。

安装

go get github.com/fehu-asia/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

util's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.