Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd/go: document that go run supports dir/pkg #30195

Closed
DmitriyMV opened this issue Feb 12, 2019 · 2 comments

Comments

Projects
None yet
3 participants
@DmitriyMV
Copy link

commented Feb 12, 2019

Francesc Campoy (@campoy) in his talk mentions that Go 1.12 now supports running go run on directories and packages. But I didn't find any mentions of it in tip release notes. Maybe it should be added there?

@mvdan

This comment has been minimized.

Copy link
Member

commented Feb 12, 2019

https://golang.org/doc/go1.11#run?

Also see:

$ go1 version
go version go1.11.5 linux/amd64
$ go1 help run
usage: go run [build flags] [-exec xprog] package [arguments...]

Run compiles and runs the named main Go package.
Typically the package is specified as a list of .go source files,
but it may also be an import path, file system path, or pattern
matching a single known package, as in 'go run .' or 'go run my/cmd'.

[...]
@DmitriyMV

This comment has been minimized.

Copy link
Author

commented Feb 12, 2019

Oh. My bad! Sorry for the false alarm!

@DmitriyMV DmitriyMV closed this Feb 12, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.