I ran go install <pkg> , the binary will be placed in $GOPATH/bin . You can copy this binary to another computer with the same OS and architecture.
You can also change the directory containing the main package and just run go build . The binary file will be placed in the current directory.
There are no tracking dependencies in the Go binary. It is statically connected. (Some system libraries may be dynamically linked, but if you are running on the same OS, this should not be a problem.)
source share