GO项目打包命令

May 13, 2022 / 魚丸包粗麵 / 1029阅读 / 0评论/ 分类: 随记
  • 编译适用于本机的版本
go build
  • 编译 Linux 版本
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build
  • 编译 Windows 64 位版本
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build
  • 编译 MacOS 版本
CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build
#go(1)#打包(1)#生成(1)#Windows(1)#Mac(1)#Liunx(1)#编译(1)

文章作者:魚丸包粗麵

文章链接:https://naeeo.com/archives/go-xiang-mu-da-bao-ming-ling

版权声明:本博客所有文章除特别声明外,均采用CC BY-NC-SA 4.0 许可协议,转载请注明出处!


评论