Posted in

Go Struct标签滥用警告:json:”,omitempty”引发的空指针panic、yaml.Unmarshal导致的竞态条件、encoding/gob的零值陷阱

第一章:Go Struct标签的 … Go Struct标签滥用警告:json:”,omitempty”引发的空指针panic、yaml.Unmarshal导致的竞态条件、encoding/gob的零值陷阱Read more

Posted in

Go struct字段定义的测试盲区:为什么你的unit test永远覆盖不到tag解析逻辑?——附go test -coverprofile精准定位方案

第一章:Go struct字段定 … Go struct字段定义的测试盲区:为什么你的unit test永远覆盖不到tag解析逻辑?——附go test -coverprofile精准定位方案Read more

Posted in

Go struct标签面试高频盲区:json/xml/tag嵌套、omitempty逻辑、自定义Unmarshaler实现(含反序列化安全漏洞)

第一章:Go struct标签的 … Go struct标签面试高频盲区:json/xml/tag嵌套、omitempty逻辑、自定义Unmarshaler实现(含反序列化安全漏洞)Read more