To build the Go app run:

go build

To change the directory where the binary will be installed run:

go env -w GOBIN=/path/to/your/bin

By default the name of the created binary will match a module name. To change it a -o [name] can be passed:

go build -o hello