For packages
go buildbuilds your package then discards the results.go installbuilds then installs the package in your$GOPATH/pkgdirectory.
For commands
go buildbuilds the command and leaves the result the current working directory.go installbuilds the command in a temporary directory then moves it to$GOPATH/bin.
If you liked this post you may also find Using go test, build and install helpful.