go-carbon v2.3.8 发布,轻量级、语义化、对开发者友好的 golang 时间处理库

96 天前
 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"

更新日志

934 次点击
所在节点    Go 编程语言
8 条回复
ysicing
96 天前
目前在用,如果能丰富一下对节假日支持 ,类似 github.com/6tail/lunar-go
body007
96 天前
@ysicing 我直接爬百度日历里面的数据,每年年底更新一次明年节假日。
https://github.com/jan-bar/interesting/blob/master/perpetual_calendar/baidu_calendar.go
gniviliving
96 天前
写的挺好的,已 star
yqcode
95 天前
看介绍不错,已 star
gouguoyin
95 天前
@ysicing 节假日不会支持,节假日没办法通过逻辑计算
gouguoyin
95 天前
@yqcode 感谢支持,欢迎提出宝贵意见
gouguoyin
95 天前
@gniviliving 感谢支持,欢迎提出宝贵意见
ysicing
95 天前
@gouguoyin 确实是调休特色

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

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

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

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

© 2021 V2EX