osarch

Win64

CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build main.go // win x64
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -o main main.go // win x64

linux ubuntu centos

CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build main.go // linux x64
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o main main.go // linux x64

MacOS

CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build main.go // mac x64
CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -o main main.go // mac x64