The go-utils project aims to build a stupid golang pkg for myself.
Feature | Status | Notes |
---|---|---|
common | ||
json | ✔ | convert the json string to the specified structure |
yaml | ✔ | convert the yaml string to the specified structure |
gorm | ✔ | gorm Expansion pack |
log | ✔ | logrus Expansion pack |
cron | ✔ | cron/v3 Expansion pack |
sync | ||
Mutex | ✔ | sync.Mutex Expansion pack |
SpinLock | ✔ | Implementation of spin lock |
RecursiveMutex | ✔ | Implementation of reentrant lock |
RecursiveMutexByToken | ✔ | Implementation of token-based reentrant lock |
-
所有的 git 提交使用 Commitizen 工具进行格式化提交信息
-
保证包不会阻塞主程序的正常运行, 除系统错误以外, 包产生的错误需要返回给业务方,由业务进行错误处理
-
如非必要, 包尽量不要产生日志输出