Posted in

Go JSON序列化性能翻车实录:struct tag错用导致反射开销激增、json.RawMessage误用引发二次解析、流式解码内存暴涨

第一章:Go JSON序列化性能 … Go JSON序列化性能翻车实录:struct tag错用导致反射开销激增、json.RawMessage误用引发二次解析、流式解码内存暴涨Read more

Posted in

Go语言中“伪属性”陷阱大全:interface{}字段、map[string]interface{}、json.RawMessage——为什么它们正在杀死你的类型安全?

第一章:Go语言中“伪属性”陷阱 … Go语言中“伪属性”陷阱大全:interface{}字段、map[string]interface{}、json.RawMessage——为什么它们正在杀死你的类型安全?Read more

Posted in

Go包变量序列化灾难:JSON.Marshal()意外暴露私有字段?struct tag、json.RawMessage与unsafe.Slice三重防御体系

第一章:Go包变量序列化灾难的根 … Go包变量序列化灾难:JSON.Marshal()意外暴露私有字段?struct tag、json.RawMessage与unsafe.Slice三重防御体系Read more