Currently `go run` accepts a file or a list of ".go" files: ``` % go help run usage: go run [build flags] [-exec xprog] gofiles... [arguments...] ```
For me, it doesn't seem to be obvious, why can't "go run" accept the directory that contains files of the main package as an input? Note, I'm aware of the ability to pass a list of all main's files, using a wildcard selector, e.g. `go run cmg/*.go`. But I want to understand if there is any particular reason it works this way, or this is how cmd's implemented and the behaviour might be extended in future releases? -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.