• Russ Cox's avatar
    cmd/go: add support for 'go run pkg' or 'go run .' · 9ccfde6e
    Russ Cox authored
    To date, go run has required a list of .go files.
    This CL allows in place of that list a single import path
    or a directory name or a pattern matching a single patckage.
    This allows 'go run pkg' or 'go run dir', most importantly 'go run .'.
    
    The discussion in #22726 gives more motivation.
    The basic idea is that you can already run 'go test .'
    but if you're developing a command it's pretty awkward
    to iterate at the same speed. This lets you do that,
    by using 'go run . [args]'.
    
    Fixes #22726.
    
    Change-Id: Ibfc8172a4f752588ad96df0a6b0928e9b61fa27f
    Reviewed-on: https://go-review.googlesource.com/109341
    Run-TryBot: Russ Cox <rsc@golang.org>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarBryan C. Mills <bcmills@google.com>
    9ccfde6e
Name
Last commit
Last update
.github Loading commit data...
api Loading commit data...
doc Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...