gox 是使用简单,灵活的跨平台golang 编译工具,我们可以快速的生成多平台的可运行文件,和使用go build 类似

一个参考构建命令

gox -ldflags "-X main.version=${VERSION}" -output="build/{{.Dir}}_{{.OS}}_{{.Arch}}" .

参考资料

https://github.com/mitchellh/gox

相关文章:

  • 2021-04-04
  • 2021-10-21
  • 2022-12-23
  • 2021-07-10
  • 2022-02-06
  • 2022-12-23
  • 2021-08-11
  • 2022-12-23
猜你喜欢
  • 2021-05-21
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-28
  • 2022-12-23
相关资源
相似解决方案