Build and deploy Go applications https://github.com/ko-build/ko

天问 9e4119e573 Update 'README.md' 5 months ago
README.md 9e4119e573 Update 'README.md' 5 months ago

README.md

ko

构建和部署跨平台go应用。

网站:https://ko.build/

开源:https://github.com/ko-build/ko

通常采用 go build 应用,或者

 CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build test.go

指定参数编译,在其它设备上可能跑不起来,比如CentOS Glib2.18 丢失的问题(CentOS不更新了)。

参考 alist 的构建方式:go/alist#1 采用xgo,docker环境快速构建兼容应用。

Usage

ko build --platform=all