Posted in Web开发实战Go新手写API总忽略Content-Type?——json.RawMessage误用、time.Time序列化时区丢失、UTF-8 BOM导致前端解析失败全场景修复 第一章:Go新手写API总忽略C … Go新手写API总忽略Content-Type?——json.RawMessage误用、time.Time序列化时区丢失、UTF-8 BOM导致前端解析失败全场景修复Read more by Go语言狂热者|2026年2月4日|Go语言API开发, UTF-8处理技巧, Content-Type设置, 头部BOM问题, json.RawMessage误用, time.Time时区处理
Posted in 问题排查与答疑Go map内struct转JSON总多出{}或[]?3分钟定位:是json.RawMessage误用、还是UnmarshalJSON未实现、抑或sync.Map并发写入污染? 第一章:Go map内struc … Go map内struct转JSON总多出{}或[]?3分钟定位:是json.RawMessage误用、还是UnmarshalJSON未实现、抑或sync.Map并发写入污染?Read more by 高并发玩家|2026年1月27日|Map线程安全, JSON序列化效率, Go动态加载, Go语言struct嵌套map, json.RawMessage误用, UnmarshalJSON未实现, sync.Map并发写入, JSON空对象空数组