run
compiles then runs a main package comprised of the .go
files.
# compile and run the go package go run main.go
install
and build
compiles the files into binaries.
# compile the packages named by imports, along with dependencies, but doesn't install the results go build file_path # compiles and installs the packages named by the imports go install file_path