Posted in

为什么test包里init执行两次?:Go测试框架对import顺序的特殊处理(-test.v触发额外init链),附go test -gcflags=”-S”溯源技巧

第一章:Go语言在import包 … 为什么test包里init执行两次?:Go测试框架对import顺序的特殊处理(-test.v触发额外init链),附go test -gcflags=”-S”溯源技巧Read more

Posted in

Go源码不是玩具:用go test -c -gcflags=”-S”反汇编对比,实测defer编译优化在src/runtime/panic.go中的演进

第一章:Go源码不是玩具:用go … Go源码不是玩具:用go test -c -gcflags=”-S”反汇编对比,实测defer编译优化在src/runtime/panic.go中的演进Read more