Carbon is a lightweight, semantic, developer-friendly Golang time processing library that supports chain calls, lunar calendar and mainstream ORMs such as gorm and xorm.
It has been included by awesome-go-cn . If you think it is good, please give it a star.
github.com/golang-module/carbon
gitee.com/golang-module/carbon
Change log
- Rename the method to
isTestNow
hasTestNow
- Fixed the bug of automatically updating the wrong time field type when using it
gorm
- Add new structures and methods
Time
ToTimeStruct
- Add new structures and methods
TimeMilli
ToTimeMilliStruct
- Add new structures and methods
TimeMicro
ToTimeMicroStruct
- Add new structures and methods
TimeNano
ToTimeNanoStruct