Posted in

map[string]interface{}类型判断不求人,手把手教你用reflect.Value.Kind()+type assertion双引擎精准定位——附性能对比基准测试数据

第一章:map[string]i … map[string]interface{}类型判断不求人,手把手教你用reflect.Value.Kind()+type assertion双引擎精准定位——附性能对比基准测试数据Read more

Posted in

Go map转JSON返回字符串?别急着改代码——先用reflect.Value.Kind()和json.RawMessage.IsObject()做2层动态类型快检

第一章:Go map转JSON时 … Go map转JSON返回字符串?别急着改代码——先用reflect.Value.Kind()和json.RawMessage.IsObject()做2层动态类型快检Read more