Posted in

Go map[string]interface{}中的空值黑洞:key存在但value为nil、json.Unmarshal后interface{}变[]interface{}{}、反射获取零值…一网打尽12种反模式

第一章:Go语言如何设置空值 G … Go map[string]interface{}中的空值黑洞:key存在但value为nil、json.Unmarshal后interface{}变[]interface{}{}、反射获取零值…一网打尽12种反模式Read more

Posted in

Go语言的“沉默即同意”哲学:为什么error必须显式处理,而nil却悄然蔓延?(Go 1.23新提案深度预判)

第一章:Go语言的“沉默即同意” … Go语言的“沉默即同意”哲学:为什么error必须显式处理,而nil却悄然蔓延?(Go 1.23新提案深度预判)Read more