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
Closed

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

DmitriyMV opened this issue Feb 12, 2019 · 2 comments

Comments

@DmitriyMV
Copy link

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
Copy link
Member

mvdan 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
Copy link
Author

DmitriyMV commented Feb 12, 2019

Oh. My bad! Sorry for the false alarm!

@golang golang locked and limited conversation to collaborators Feb 12, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants