Solve the time formatting of Golang structure json

藏色散人
Release: 2021-03-12 11:34:50
forward
3469 people have browsed it

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,
下面列出解决办法
Copy after login
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!

Related labels:
source:learnku.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template