On 11/05/2013 01:03 PM, TR NS wrote:
>
> I don't understand how it is "orthogonal". You say "anything that is a
> Command", but what is it to be a Command?
http://golang.org/doc/code.html#PackageNames
"Executable commands must always use package main."
>
> One of the things I am wondering about with this... is there no way to
> keep a scrap go file around (that has `package main`) in it? e.g. lets
> say I want to keep such a file for reference sake, so I drop it in a
> `scrap` directory. Bit it would seem this might be a problem b/c it will
> still get turned into a executable even though it is only in my project
> for reference sake.
just prefix the folder name with an underscore "_scrap".
from $ go help packages
"File names that begin with "." or "_" are ignored by the go tool."