The Go Programming Language
› http://golang.org/
› Go Playground
Go Projects
› Revel Web Framework
gouguoyin

go-carbon 2.2.9 版本发布, 轻量级、语义化、对开发者友好的 Golang 时间处理库

  •  
  •   gouguoyin ·
    kuafuRace · Oct 9, 2023 · 1522 views
    This topic created in 1089 days ago, the information mentioned may be changed or developed.

    carbon 是一个轻量级、语义化、对开发者友好的 golang 时间处理库,支持链式调用。

    目前已被 awesome-go 收录,如果您觉得不错,请给个 star 吧

    github.com/golang-module/carbon

    gitee.com/golang-module/carbon

    安装使用

    Golang 版本大于等于 1.16
    // 使用 github 库
    go get -u github.com/golang-module/carbon/v2
    
    import "github.com/golang-module/carbon/v2"
    
    // 使用 gitee 库
    go get -u gitee.com/golang-module/carbon/v2
    
    import "gitee.com/golang-module/carbon/v2"
    
    Golang 版本小于 1.16
    // 使用 github 库
    go get -u github.com/golang-module/carbon
    
    import "github.com/golang-module/carbon"
    
    // 使用 gitee 库
    go get -u gitee.com/golang-module/carbon
    
    import  "gitee.com/golang-module/carbon"
    
    更新日志
    • 修复获取年龄方法计算错误的 bug

    • 修复乌克兰语部分翻译错误的 bug

    • 更改 DateTime 、DateTimeXXX 、Date 、DateXXX 等结构体的类型

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   813 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 20:11 · PVG 04:11 · LAX 13:11 · JFK 16:11
    ♥ Do have faith in what you're doing.