On Thu, Jan 31, 2013 at 1:26 AM, Dawid Polak wrote:

This is not a problem of Go itself, as Windows cmd doesn't expand the
I know. But documentation should mention more abut this limitation.
btw, if you're using more than one file for the main package, why not follow
http://golang.org/doc/code.**html <http://golang.org/doc/code.html> and
set up GOPATH and use go build/install?

Of course - i have - but many times go run is used for test run only, and
simple - is faster.
it is only faster if you only run the same set of program once.
probably you can create a script (or better, a Go program) to wrap the go
tool and
expand wildcards in the argument (use path/filepath.Glob and os/exec for
that task)
we don't require alternative console on windows.
But maybe documentation should suggest this solution, or in 'go run'
implement alternative command line parameter format - for example " go run
' *.go ' "
"go run" is only supposed to run single file commands for test purpose, so
it even
don't support read the source code from stdin, because the authors' fear
that people
will abuse that (however, as i frequently run sample programs from
i do have a script for that).

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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Search Discussions

Discussion Posts


Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 4 of 8 | next ›
Discussion Overview
groupgolang-nuts @
postedJan 30, '13 at 4:16p
activeJun 15, '16 at 2:25a



site design / logo © 2021 Grokbase