Posted in

Go init执行顺序不可控?:用go mod graph + custom analyzer自动生成init依赖有向图,提前拦截循环初始化风险

第一章:Go init执行顺序不 … Go init执行顺序不可控?:用go mod graph + custom analyzer自动生成init依赖有向图,提前拦截循环初始化风险Read more

Posted in

Go自动执行程序上线即崩?——3个被90%开发者忽略的init()顺序、flag.Parse()时机与全局变量竞态问题

第一章:Go自动执行程序的典型崩 … Go自动执行程序上线即崩?——3个被90%开发者忽略的init()顺序、flag.Parse()时机与全局变量竞态问题Read more