Posted in

Go struct tag解析的反射开销真相:reflect.StructTag.Get()为何比map[string]string查找慢12倍?源码级性能归因分析

第一章:Go struct ta … Go struct tag解析的反射开销真相:reflect.StructTag.Get()为何比map[string]string查找慢12倍?源码级性能归因分析Read more

Posted in

Go结构体标签进化史(json, yaml, toml → gofield, validate, sqlx):如何用reflect.StructTag统一管理12类元数据而不损性能

第一章:Go结构体标签的演进动因 … Go结构体标签进化史(json, yaml, toml → gofield, validate, sqlx):如何用reflect.StructTag统一管理12类元数据而不损性能Read more

Posted in

Go struct标签不是注解?彻底厘清interface{}、reflect.StructTag与自定义注解的边界(Go 1.22新特性前瞻)

第一章:Go struct标签的 … Go struct标签不是注解?彻底厘清interface{}、reflect.StructTag与自定义注解的边界(Go 1.22新特性前瞻)Read more