realtaobo / go-utils

golang通用公共工具库

Home Page:https://pkg.go.dev/github.com/tryturned/go-utils

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

go-utils

Go Report Card Go Reference

🔮 Vision

The go-utils project aims to build a stupid golang pkg for myself.

💌 Features

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

👋 Contributors

  • 所有的 git 提交使用 Commitizen 工具进行格式化提交信息

  • 保证包不会阻塞主程序的正常运行, 除系统错误以外, 包产生的错误需要返回给业务方,由业务进行错误处理

  • 如非必要, 包尽量不要产生日志输出

About

golang通用公共工具库

https://pkg.go.dev/github.com/tryturned/go-utils

License:GNU General Public License v3.0


Languages

Language:Go 100.0%