Carbon is an easy, semantic and developer-friendly golang bundle for datetime.
Carbon has been included by awesome-go , if you happen to suppose it’s useful, please give me a star.
github.com/golang-module/carbon
Set up
Go model >= 1.16
go get -u github.com/golang-module/carbon/v2
import "github.com/golang-module/carbon/v2"
Go model < 1.16
go get -u github.com/golang-module/carbon
import "github.com/golang-module/carbon"
Change log
- Repair translation error in
lang/fr.json
andlang/jp.json
information - Repair bug in
IsZero
methodology - Add
IsDST
methodology - Add
Closest
andFarthest
strategies - Rename from
modifier.go
toboundary.go
,modifier_test.go
toboundary_test.go