You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In http://tip.golang.org/cmd/go/#Test_packages the last argument to the test command is
flags to test binaries. It is unclear how to disambiguate package names from test flags
(if you disambiguate by having hyphen - it should be clearly spelled out).
Similar issue arises for go run, with packages ending with ".go".
Documentation should clearly spell out that go arguments are stopped being parsed as go
files after the first argument not ending with ".go".
(I'm not saying Go should support weird package names or arguments with ".go"
suffix, but the rules for argument parsing should be spelled out clearly in the docs.)
The text was updated successfully, but these errors were encountered:
Even if go run is well specified. a small note like 'go files are files with ".go"
suffix' would help a lot to people like me who weren't sure how go files are defined.
by elazarl:
The text was updated successfully, but these errors were encountered: