Go-carbon v2.6.8 was released, a simple, semantic and developer-friendly golang package for datetime

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 from 1.21.1 to 1.30.0 in tests
  • Upgrade gorm.io/driver/mysql from 1.5.7 to 1.6.0 in tests
  • Upgrade gorm.io/driver/postgres from 1.5.7 to 1.6.0 in tests
  • Upgrade gorm.io/driver/sqlite from 1.5.7 to 1.6.0 in tests
  • Rename DateTimeType to dateTimeType, DateTimeXXXType to dateTimeXXXType in type_builtin.go
  • Rename DateType to dateType, DateXXXType to dateXXXType in type_builtin.go
  • Rename TimeType to timeType, TimeXXXType to timeXXXType in type_builtin.go
  • Simplify readme file and migrate overview and example usage to the official doc website
  • Add HelloGitHub badge link