Hi. I have problem with run go run command from windows CMD.Standard dev command> go run *.go
generate error> GetFileAttributesEx *.go: winapi error #123At this moment on windows i must use alternative console (for example MINGW32) for normal workflow, but as I know - many new developers had this problem, and nowhere in google any info about this.
(windows 7, x64)
> This is not a problem of Go itself, as Windows cmd doesn't expand the wildcard.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 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.
> 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 ' "
probably you can create a script (or better, a Go program) to wrap the go tool andexpand wildcards in the argument (use path/filepath.Glob and os/exec for that task)