Parameters
- GOOS: the target operating system
- GOARCH: the target architecture (x86_64 = amd64)
Example: Building for Linux
export GOOS=linux
export GOARCH=amd64
go build
Documentation / Reference
- syslist.go GOOS and GOARCH values
Example: Building for Linux
export GOOS=linux
export GOARCH=amd64
go build