go run

go run [build flags] [-exec xprog] package [arguments...]
  • Run compiles and runs the named main Go package.
  • It's more or less the equivalent of running go build X.go -o /tmp/random-tmp-folder/exe && /tmp/random-tmp-folder/exe
  • go run will NOT create an executable file in our current folder