I'd like to float a suggestion for the go1.7 timeframe.
Right now "go build -o mymain cmd/mymain" builds a single package and outputs it to the path specified by "-o". I propose modifying that slightly so that if the value of -o is a directory, it will output using the standard name in that directory, allowing multiple packages to be specified at once.
The following except from "go help build":
The -o flag, only allowed when compiling a single package,
forces build to write the resulting executable or object
to the named output file, instead of the default behavior described
in the last two paragraphs.
would be modified to read as:
The -o flag, forces build to write the resulting executable or object
to the named output file. If named output is a directory, build allows
compiling multiple packages into the named output directory.
I could then use it to install multiple commands into a local bin (tool) directory for builds, say:
go build -o bin/ cmd/...
Thoughts?