Posted in Go语言基础和工具链Go map[string]Person{}转JSON为空对象{}?不是bug,是Go 1.22新增的struct字段对齐检查与json encoder字段可见性规则变更所致 第一章:Go map[strin … Go map[string]Person{}转JSON为空对象{}?不是bug,是Go 1.22新增的struct字段对齐检查与json encoder字段可见性规则变更所致Read more by 架构思考者|2026年1月27日|JSON编码器可见性, 1.22新特性, Go动态加载, Map转JSON崩溃, JSON空对象空数组, struct字段对齐检查
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日|Go语言struct嵌套map, json.RawMessage误用, UnmarshalJSON未实现, sync.Map并发写入, JSON空对象空数组, Map线程安全, JSON序列化效率, Go动态加载