Supported Golang GOOS and GOARCH combinations

To get the list of supported GOOS (operating system) and GOARCH (architecture) combinations execute

go tool dist list

To specify the GOOS and GOARCH attributes in the Bash command line, build the Golang application with

GOOS=linux GOARCH=amd64 go build -v -o MY_APP cmd/MY_APP/*.go

Leave a comment

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