Posted in

【紧急修复公告】Go v1.22升级后前端Fetch出现Unexpected end of JSON input?JSON Decoder缓冲区bug及降级兼容方案

第一章:Go v1.22升级引发 … 【紧急修复公告】Go v1.22升级后前端Fetch出现Unexpected end of JSON input?JSON Decoder缓冲区bug及降级兼容方案Read more

Posted in

为什么你的Go微服务JSON字段总报“invalid character ‘}’”?深度剖析结构体嵌套map[string]string的4层Marshal生命周期

第一章:Go中怎么将结构体中的m … 为什么你的Go微服务JSON字段总报“invalid character ‘}’”?深度剖析结构体嵌套map[string]string的4层Marshal生命周期Read more

Posted in

Go string转map高频报错汇总手册(invalid character, cannot unmarshal object into Go value, key is not a string)——附自动修复CLI工具

第一章:Go string转ma … Go string转map高频报错汇总手册(invalid character, cannot unmarshal object into Go value, key is not a string)——附自动修复CLI工具Read more

Posted in

string转map时panic(“invalid character”)?这不是bug,是Go标准库对UTF-8 BOM的静默拒绝(附绕过方案)

第一章:string转map时p … string转map时panic(“invalid character”)?这不是bug,是Go标准库对UTF-8 BOM的静默拒绝(附绕过方案)Read more