Introduction
Carbon is a simple, semantic and developer-friendly time package for golang
, 100%
unit test coverage, doesn’t depend on any
third-party package and has been included by awesome-go and hello-github
Quick Start
Installation
go version >= 1.21
// By github
go get -u github.com/dromara/carbon/v2
import "github.com/dromara/carbon/v2"
// By gitee
go get -u gitee.com/dromara/carbon/v2
import "gitee.com/dromara/carbon/v2"
// By gitcode
go get -u gitcode.com/dromara/carbon/v2
import "gitee.com/dromara/gitcode/v2"
Documentation
For full documentation, please visit carbon.go-pkg.com
CHANGELOG
- Parsing when layouts or formats is empty, returns a error
- Upgrade
gorm.io/gorm
from1.21.1
to1.30.0
intests
- Upgrade
gorm.io/driver/mysql
from1.5.7
to1.6.0
intests
- Upgrade
gorm.io/driver/postgres
from1.5.7
to1.6.0
intests
- Upgrade
gorm.io/driver/sqlite
from1.5.7
to1.6.0
intests
- Rename
DateTimeType
todateTimeType
,DateTimeXXXType
todateTimeXXXType
intype_builtin.go
- Rename
DateType
todateType
,DateXXXType
todateXXXType
intype_builtin.go
- Rename
TimeType
totimeType
,TimeXXXType
totimeXXXType
intype_builtin.go
- Simplify readme file and migrate overview and example usage to the official doc website
- Add HelloGitHub badge link