1. 首页
  2. 数据库
  3. 其它
  4. go timestamp sql:用于将null.Time转换为Google Protobuf时间戳的函数反之亦然 源码

go timestamp sql:用于将null.Time转换为Google Protobuf时间戳的函数反之亦然 源码

上传者: 2021-02-19 18:47:16上传 ZIP文件 5.35KB 热度 46次
go-timestamp-sql 从null.Time转换为Google Protobuf时间戳的功能,反之亦然。 这非常有用,因为我们使用库将时间戳字段存储到SQL中。 入门 go get -v github.com/AlpacaLabs/go-timestamp-sql 并在您的Go代码中 import ( "testing" "time" clock "github.com/AlpacaLabs/go-timestamp" . "github.com/smartystreets/goconvey/convey" ) func Test_TimestampConversion
下载地址
用户评论