go-carbon 2.0.0 版本发布, 要求最低 golang 版本 1.16

栏目: 软件资讯 · 发布时间: 4年前

内容简介:carbon 是一个轻量级、语义化、对开发者友好的Golang时间处理库,支持链式调用、农历和gorm、xorm等主流orm 目前已被 awesome-go 收录,如果您觉得不错,请给个 star 吧 github.com/golang-module/carbon gitee....

carbon 是一个轻量级、语义化、对开发者友好的Golang时间处理库,支持链式调用、农历和gorm、xorm等主流orm

目前已被 awesome-go 收录,如果您觉得不错,请给个 star 吧
github.com/golang-module/carbon
gitee.com/go-package/carbon

更新日志

  • 对 go 版本最低要求升级到1.16,利用 embed 特性,无需再将lang语言目录复制到当前项目下

  • Carbon结构体里的公共字段Time改成私有字段time

  • 移除ToTimestamp()方法,只保留Timestamp()方法

  • 移除ToTimestampWithSecond()方法,只保留TimestampWithSecond()方法

  • 移除ToTimestampWithMillisecond()方法,只保留TimestampWithMillisecond()方法

  • 移除ToTimestampWithMicrosecond()方法,只保留TimestampWithMicrosecond()方法

  • 移除ToTimestampWithNanosecond()方法,只保留TimestampWithNanosecond()方法

  • 移除ToTimestamp结构体,只保留Timestamp结构体

  • 移除ToTimestampWithSecond结构体,只保留TimestampWithSecond结构体

  • 移除ToTimestampWithMillisecond结构体,只保留TimestampWithMillisecond结构体

  • 移除ToTimestampWithMicrosecond结构体,只保留TimestampWithMicrosecond结构体

  • 移除ToTimestampWithNanosecond结构体,只保留ToTimestampWithNanosecond结构体

  • 移除ToDateTimeString结构体,只保留DateTime结构体

  • 移除ToDateTimeString结构体,只保留Date结构体

  • 移除ToTimeString结构体,只保留Time结构体


以上就是本文的全部内容,希望本文的内容对大家的学习或者工作能带来一定的帮助,也希望大家多多支持 码农网

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

Beginning Google Maps API 3

Beginning Google Maps API 3

Gabriel Svennerberg / Apress / 2010-07-27 / $39.99

This book is about the next generation of the Google Maps API. It will provide the reader with the skills and knowledge necessary to incorporate Google Maps v3 on web pages in both desktop and mobile ......一起来看看 《Beginning Google Maps API 3》 这本书的介绍吧!

JS 压缩/解压工具
JS 压缩/解压工具

在线压缩/解压 JS 代码

RGB转16进制工具
RGB转16进制工具

RGB HEX 互转工具

RGB CMYK 转换工具
RGB CMYK 转换工具

RGB CMYK 互转工具