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

357 天前
 gouguoyin

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"
更新日志
867 次点击
所在节点    Go 编程语言
6 条回复
ihipop
357 天前
从 PHP 用到 Golang , 熟悉而好用的 API 感谢。
gouguoyin
357 天前
@ihipop 欢迎提出宝贵意见
bthulu
357 天前
时间处理库不是官方自带的吗, 为什么还要造轮子
fgwmlhdkkkw
357 天前
carbon 不是个 Google 搞得新语言吗?🫵
gouguoyin
357 天前
@bthulu 官方自带的标准库用起来不是很方便
gouguoyin
357 天前
@fgwmlhdkkkw 在 carbon 语言没有之前就已经有 carbon 时间处理库了

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/987805

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX