Golang 编译运行

go build

Windows编译
/// CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build

Linux编译
/// CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build

你可能感兴趣的:(Golang 编译运行)