Home  >  Article  >  Backend Development  >  Solve the time formatting of Golang structure json

Solve the time formatting of Golang structure json

藏色散人
藏色散人forward
2021-03-12 11:34:503472browse

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!

Solve the time formatting of Golang structure json

今天开发的过程中遇到一个问题,数据库内有个日期字段(类型:date)查询出来后会是 
2021-01-01T20:08:23.000000028+08:00 这种格式,而我只要2021-01-01,
下面列出解决办法
rrree

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!

Statement:
This article is reproduced at:learnku.com. If there is any infringement, please contact admin@php.cn delete