Carbon is a simple, semantic and developer-friendly golang package for datetime.
Carbon has been included by awesome-go , if you think it is helpful, please give me a star.
github.com/golang-module/carbon
Installation
Go version >= 1.16
go get -u github.com/golang-module/carbon/v2
import "github.com/golang-module/carbon/v2"
Change log
- Extract the calendar as an independent sub package
- Add
CreateFromLunar
method, create aCarbon
instance fromLunar
date and time - Fix concurrent map read and map write in
ToMonthString
,ToShortMonthString
,ToWeekString
,ToShortWeekString
,Season
,Constellation
methods - Improve
unit
andbenchmark
test coverage