Build & Install
Building = just compiling your code
Install = building and then adding the binary to your binary path
Build
go build
Execute
./myExeInstall
First you will need to determine were it will be installed to
go list -f '{{.Target}}'
Then determine which executable you want to use
# if you want to use your install dir
export PATH=$PATH:/path/to/your/install/directory
# if you want to use bin folder
go env -w GOBIN=/path/to/your/bin
Then install it
go install
Then execute
myExe