[go-nuts] Re: How to pass a go file name as arguments to go run

2017-01-05 Thread bsr
thanks Dave. This is to test a code generation utility during development, so not to build/install etc, but run directly. thanks again for your help. On Thursday, January 5, 2017 at 12:07:55 AM UTC-5, Dave Cheney wrote: > > go run cmd/main.go -- tests/a/in.go > > But you've probably reached the

[go-nuts] Re: How to pass a go file name as arguments to go run

2017-01-04 Thread Dave Cheney
go run cmd/main.go -- tests/a/in.go But you've probably reached the practical limit of what go run should be used for. I recommend using the expected GOPATH package layout, go build/install, etc. On Thursday, 5 January 2017 16:02:50 UTC+11, bsr wrote: > > Following works. > > go run cmd/main.g