navigaid
11/15/2016 - 7:03 PM

https://golang.org/doc/install/source#environment

 ✘  ~/GitHub/gowork/src/hello  history | tail | grep GOOS
 4299  GOOS=darwin GOARCH=amd64 go build -o hello_osx_amd64 hello.go
 4300  GOOS=darwin GOARCH=386 go build -o hello_osx_386 hello.go
 4301  GOOS=linux GOARCH=386 go build -o hello_linux_386 hello.go
 4302  GOOS=linux GOARCH=amd64 go build -o hello_linux_amd64 hello.go
 4308  history tail | grep GOOS
 ~/GitHub/gowork/src/hello  file *
hello.go:          c program text, ASCII text
hello_amd64.exe:   PE32+ executable (console) x86-64 (stripped to external PDB), for MS Windows
hello_i386.exe:    PE32 executable (console) Intel 80386 (stripped to external PDB), for MS Windows
hello_linux_386:   ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), statically linked, not stripped
hello_linux_amd64: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, not stripped
hello_osx_386:     Mach-O executable i386
hello_osx_amd64:   Mach-O 64-bit executable x86_64