Posted in

Go泛型+反射协同训练陷阱:type switch失效、reflect.Value.Kind()误判、interface{}类型擦除后的运行时panic防控训练

第一章:Go泛型与反射协同训练的 … Go泛型+反射协同训练陷阱:type switch失效、reflect.Value.Kind()误判、interface{}类型擦除后的运行时panic防控训练Read more

Posted in

Go语言期末「隐藏考点」清单:unsafe.Pointer、reflect.Value.Kind()、cgo调用限制(教辅书绝少提及的5个冷门但必考项)

第一章:Go语言期末「隐藏考点」 … Go语言期末「隐藏考点」清单:unsafe.Pointer、reflect.Value.Kind()、cgo调用限制(教辅书绝少提及的5个冷门但必考项)Read more

Posted in

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

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