小编Ais*_*nan的帖子

golang中用于存储日期时间偏移量的数据类型

I am using go language to develop an application. In my program I receive a JSON data which contains an entity in date time offset format for example DateTime": "2014-10-19T23:08:24Z"

I need to unmarshal the JSON and store it in the database in the TIMESTAMP(p) WITH TIME ZONE format in PostgreSQL database. When I unmarshal, I need to store this in a variable of the same data type.

Is there a data type available in Golang to do this or …

postgresql datetime json go

5
推荐指数
1
解决办法
3474
查看次数

标签 统计

datetime ×1

go ×1

json ×1

postgresql ×1