Posted in

Go的type alias不是语法糖!实测type MyInt = int与type MyInt int在go:generate、go:embed、以及plugin加载时的5种行为分裂

第一章:Go type alia … Go的type alias不是语法糖!实测type MyInt = int与type MyInt int在go:generate、go:embed、以及plugin加载时的5种行为分裂Read more

Posted in

Go类型系统骚操作:通过type alias + go:build约束实现同一份代码双模编译(Linux/BPF与Windows GUI共存)

第一章:Go类型系统骚操作:通过 … Go类型系统骚操作:通过type alias + go:build约束实现同一份代码双模编译(Linux/BPF与Windows GUI共存)Read more

Posted in

接口版本管理太痛苦?Go语言接口如何增加,深度解析interface{}陷阱与type alias破局方案

第一章:接口版本管理太痛苦?Go … 接口版本管理太痛苦?Go语言接口如何增加,深度解析interface{}陷阱与type alias破局方案Read more