静态编译一个Go程序

cooolr 于 2021-04-15 发布
CGO_ENABLED=0 go build -a -ldflags '-extldflags "-static"' .