The following is the Golang language tutorial column to introduce to you the time formatting solution of Golang structure json, I hope it will be helpful to friends in need!
今天开发的过程中遇到一个问题,数据库内有个日期字段(类型:date)查询出来后会是 2021-01-01T20:08:23.000000028+08:00 这种格式,而我只要2021-01-01, 下面列出解决办法
The above is the detailed content of Solve the time formatting of Golang structure json. For more information, please follow other related articles on the PHP Chinese website!