Go - Build

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


Powered by ComboStrap