giant-stone/go is a Go library which provides utility functions for common programming tasks.
Build requirement: Go 1.20.
giant-stone/go 是一个将多个生产环境项目高频使用函数整合一起,避免在每个项目中不断重复。
安装最新版本
go list -m -versions github.com/giant-stone/go
# 在输出中选择最新一个版本,比如 `v1.0.0`
go get -u github.com/giant-stone/[email protected]
使用示例见 https://github.com/giant-stone/go/wiki
更新 ghttp mock 代码
go install go.uber.org/mock/[email protected]
mockgen -source=ghttp/ghttp.go -destination=ghttp/impl_mock.go -package=ghttp -mock_names Interface=ImplMock