go-carbon 2.2.8 版本发布, 轻量级、语义化、对开发者友好的 Golang 时间处理库
carbon 是一个轻量级、语义化、对开发者友好的 golang 时间处理库,支持链式调用。
目前已被 awesome-go 收录,如果您觉得不错,请给个 star 吧
github.com/golang-module/carbon
gitee.com/golang-module/carbon
安装使用
Golang 版本大于等于1.16
// 使用 github 库
go get -u github.com/golang-module/carbon/v2
import "github.com/golang-module/carbon/v2"
// 使用 gitee 库
go get -u gitee.com/golang-module/carbon/v2
import "gitee.com/golang-module/carbon/v2"
Golang 版本小于1.16
// 使用 github 库
go get -u github.com/golang-module/carbon
import "github.com/golang-module/carbon"
// 使用 gitee 库
go get -u gitee.com/golang-module/carbon
import "gitee.com/golang-module/carbon"
更新日志
将
isTestNow方法更名为hasTestNow修复使用
gorm时自动更新时间字段类型错误的 bug新增
Time结构体和ToTimeStruct方法新增
TimeMilli结构体和ToTimeMilliStruct方法新增
TimeMicro结构体和ToTimeMicroStruct方法新增
TimeNano结构体和ToTimeNanoStruct方法
评论
匿名评论
隐私政策
你无需删除空行,直接评论以获取最佳展示效果