有点坑,必须是这个时间字符串才可以格式化正确 2006/01/02 15:04 05
fmt.Println(time.Now().Format(“2006/01/02 15:04 05”))//强制需要这个串

golang 格式化时间类型

相关文章: