Golang gc
From wikinotes
This page documents the builtin golang compilation tools.
run
go run
is a convenience tool that builds/runs an executable.
it accepts all of the same build-flags asgo build
.go run . # compile package at cwd, and run it's 'main()' method go run . --help # cli params for the program can be passed to go run go run main.go lib.go ... # compile only these files, and run detected 'main()' method go run some/package # compile a specific package