Skip to content

the very first version of the remade go-commons

Latest
Compare
Choose a tag to compare
@winjeg winjeg released this 19 Dec 03:51
· 39 commits to master since this release

After deleting all the history versions. for which I'm sorry, I decide to re-version all the package. Of couse it is compatible with the former versions.
The following modules are included

1. cache

a simple memory based cache, which implements lazy deleting and provide simple put and get apis

2. conf

a package for configuration files both for testing and the non-testing go files

3. httpclient

I just want to write less code in this.

4. log

  • logrus based log tool, supporting rolling files, which in some way is like the log4j style in java.
  • colored output

5. openapi

a common way to open your service api to third party, easy to use . both for servers and go clients

6. props

the property files parser and writter

7. settings

simple but useful way to read settings from relational database.

8. str

simple but useful string utilities

9. uid

  • a wrapper for genetaing snowflake based unique ids
  • unique str id generator

It's been tested for a while