Posted in

Go语言startup时间<5ms的秘密:从linker flags(-ldflags '-s -w')到build constraints的极致裁剪术

第一章:Go语言startup时 … Go语言startup时间<5ms的秘密:从linker flags(-ldflags '-s -w')到build constraints的极致裁剪术Read more

Posted in

Go构建产物体积暴增210%?揭秘go build -trimpath -buildmode=pie -ldflags=’-s -w’在OCI镜像层中的压缩极限

第一章:Go构建产物体积暴增21 … Go构建产物体积暴增210%?揭秘go build -trimpath -buildmode=pie -ldflags=’-s -w’在OCI镜像层中的压缩极限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