Posted in

Go语言map序列化JSON(避坑手册V2.3):87%开发者忽略的nil map、time.Time、struct tag失效问题

第一章:Go语言map序列化JS … Go语言map序列化JSON(避坑手册V2.3):87%开发者忽略的nil map、time.Time、struct tag失效问题Read more

Posted in

Go查询返回map后,为什么JSON.Marshal()突然panic?time.Time、[]byte、sql.NullString兼容性终极指南

第一章:Go查询数据库如何绑定到 … Go查询返回map后,为什么JSON.Marshal()突然panic?time.Time、[]byte、sql.NullString兼容性终极指南Read more

Posted in

Go POST map[string]interface{}时遇到time.Time字段变”0001-01-01T00:00:00Z”?json.MarshalOptions配置缺失的3个关键参数

第一章:Go POST map[ … Go POST map[string]interface{}时遇到time.Time字段变”0001-01-01T00:00:00Z”?json.MarshalOptions配置缺失的3个关键参数Read more

Posted in

json.Marshal(map)在gjson上下文中的5个隐藏开销:interface{}转换、reflect.Value缓存、float64精度丢失、time.Time序列化、nil slice处理

第一章:json.Marshal … json.Marshal(map)在gjson上下文中的5个隐藏开销:interface{}转换、reflect.Value缓存、float64精度丢失、time.Time序列化、nil slice处理Read more

Posted in

Go map内struct转JSON时time.Time变字符串、float64精度丢失、nil slice被忽略?12个真实日志还原问题现场

第一章:Go map内struc … Go map内struct转JSON时time.Time变字符串、float64精度丢失、nil slice被忽略?12个真实日志还原问题现场Read more