Posted in

Go泛型约束表达式失效?张燕妮解析go/types包AST遍历逻辑,给出type constraint debug checklist(含go tool trace可视化脚本)

第一章:Go泛型约束表达式失效现 … Go泛型约束表达式失效?张燕妮解析go/types包AST遍历逻辑,给出type constraint debug checklist(含go tool trace可视化脚本)Read more

Posted in

【Go类型元编程入门】:用reflect.TypeOf()、fmt.Sprintf(“%T”)、go/types包等6种方式精准输出变量类型,附性能压测对比数据

第一章:Go语言打印变量类型的核 … 【Go类型元编程入门】:用reflect.TypeOf()、fmt.Sprintf(“%T”)、go/types包等6种方式精准输出变量类型,附性能压测对比数据Read more