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

时间:2021-02-18 21:48:20
【文件属性】:
文件名称:go-timestamp-sql:用于将null.Time转换为Google Protobuf时间戳的函数,反之亦然
文件大小:5KB
文件格式:ZIP
更新时间:2021-02-18 21:48:20
Makefile 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 ( t * testing. T ) { Convey ( "Given some non-zero time" , t , func ( c C ) { now := time . Now
【文件预览】:
go-timestamp-sql-master
----go.mod(260B)
----clock_test.go(480B)
----go.sum(4KB)
----makefiles()
--------code-quality.mk(1KB)
--------check-deps.mk(116B)
----README.md(810B)
----clock.go(492B)
----Makefile(301B)
----.gitignore(6B)

网友评论