Hi Volker, > On 25. Feb, 2021, at 09:34, Volker Dobler <dr.volker.dob...@gmail.com> wrote: > > Well, there is already subcommand "test": go test runs the (unit) tests > defined in the *_test.go files using package testing, so this won't work. > > Well there is nothing wrong with a plain "go run" (nor arguments at all) > or "go run ." (a single dot for "current directory") and this is even _less_ > to type than "go run main.go" and doesn't suffer from the problematic > "file focus". > I think the problem is not "go run" per se, but "go run main.go" > as cargo cult for "execute my program written in Go".
I agree. It's technically sound and well documented. But unfortunately, people tend to try things out and read the docs only if something doesn't work. So, misuse and questions can be expected in my opinion. Cheers, Paul -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/E6E2492E-F340-4986-A7F1-91C5EDDAAE02%40gmail.com.