Think before you speak, read before you think.

golang 交叉编译

编译 linux 64 位

GOOS=linux GOARCH=amd64 go build

编译 mac 64 位

GOOS=darwin GOARCH=amd64 go build

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *