Posted in

为什么你的Go程序写文件总出错?12个隐藏陷阱+9行关键代码修复方案,99%开发者忽略

第一章:Go写文件的常见错误全景 … 为什么你的Go程序写文件总出错?12个隐藏陷阱+9行关键代码修复方案,99%开发者忽略Read more

Posted in

【Go二进制瘦身终极指南】:从12MB到2.3MB——strip、upx、-ldflags -s -w的9种组合压测结果公开

第一章:Go二进制瘦身的底层原理 … 【Go二进制瘦身终极指南】:从12MB到2.3MB——strip、upx、-ldflags -s -w的9种组合压测结果公开Read more

Posted in

Go运行时内存快照对比:go run(堆增长180MB)vs go build -ldflags=”-s -w”(稳定在24MB)——企业级瘦身指南

第一章:Go运行时内存快照对比: … Go运行时内存快照对比:go run(堆增长180MB)vs go build -ldflags=”-s -w”(稳定在24MB)——企业级瘦身指南Read more

Posted in

Go程序符号剥离终极方案(go tool compile -gcflags=all=’-l’ + go tool link -ldflags=’-s -w -buildmode=pie’)

第一章:Go语言做的程序是什么 … Go程序符号剥离终极方案(go tool compile -gcflags=all=’-l’ + go tool link -ldflags=’-s -w -buildmode=pie’)Read more

Posted in

【Go程序安全基线】:2024 OWASP Top 10适配指南——从编译标志(-ldflags ‘-s -w’)到最小化攻击面

第一章:Go程序安全基线的定义与 … 【Go程序安全基线】:2024 OWASP Top 10适配指南——从编译标志(-ldflags ‘-s -w’)到最小化攻击面Read more