在Mac上编译可运行在Linux, Windows上的GO程序
编译运行在 amd64位 linux系统
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build
编译运行在 amd64位 windows系统
CGO_ENABLED=0 GOOS=windows go build
在Mac上编译可运行在Linux, Windows上的GO程序
编译运行在 amd64位 linux系统
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build
编译运行在 amd64位 windows系统
CGO_ENABLED=0 GOOS=windows go build
本文标题:GO 在Mac上编译可运行的Linux, Windows
本文链接:https://www.haomeiwen.com/subject/omlluktx.html
网友评论