1.go与mysql数据类型关系
2.mysql日期时间格式
3.go 存储 mysql TIMESTAMP格式
存:
type TestTime struct{
CreatedAt time.Time
}
m:=new(TestTime)
m.CreatedAt:=time.Now()
取:
go orm 取TestTime结构体数据
str:=orm_data.CreatedAt.Format("2006-01-02 15:04:05")
str == "2019-08-27 09:35:13"