Compile a 'package main' file (output will be the filename without extension)

go build

go build {{path/to/main.go}}

click the source code to copy install go build on any operating system with command-not-found.com