ldd 命令来看到动态链接库 ldd $GOPATH/bin/helloworld 创建在 Go 中的可执行静态链接 CGO_ENABLED=0 go get -a -ldflags ‘-s’ github.com/adriaandejonge/helloworld CGO_ENABLED 环境变量告诉 Go 使用 cgo 编译器而不是 go 编译器。-a 参数告诉 GO 重薪构建所有的依