Skip to content

WindomZ/go-develop-kit

Repository files navigation

go-develop-kit

Build Status License

My development kits for Golang.

中文文档

Install

go get github.com/WindomZ/go-develop-kit...

Usage

Bytes

  • bytes
    • Format formats bytes integer to human readable string
    • Parse parses human readable bytes string to bytes integer

Cache

GoogleAuthenticator

  • One-time Password
    • HMAC-Based One-time Password (HOTP) algorithm specified in RFC 4226
    • Time-based One-time Password (TOTP) algorithm specified in RFC 6238

IP

  • ip
    • Get the current IP address
    • Get the end of current IP address

Math

  • float64
    • Add, subtract, multiply, divide and round
    • Calculation of big number, eliminate the error precision

Mutex

  • mutex
    • Still in development :)

Path

README

  • Get the user's home directory
  • File operation function collection

Queue

  • queue
    • Push push the queue.
    • Pull pull the queue, FIFO.
    • Exchange safely change queue capacity.

Security

  • salt

StringUtil

  • string
    • Split the string
  • regexp
    • Split the string with regular expression

Unit

  • currency
    • Unit currency, the multiple formats mapping
  • float price
    • Unit price, floating point calculation
  • int price
    • Unit price, integral calculation

UUID

  • uuid
    • Common UUID safe generation method
  • validator
    • Commonly used UUID validator
  • tool
    • Commonly used UUID conversion tool

Contributing

Welcome to pull requests, report bugs, suggest ideas and discuss go-develop-kit, i would love to hear what you think about go-develop-kit on issues page.

If you like it then you can put a ⭐ on it.

License

MIT

Releases

No releases published

Packages

No packages published

Languages