Proposal Details

Add support for package pattern in "go tool". If the argument to "go tool" is detected as a pattern, match the pattern against the declared tools in go.mod.

Rationale

go get -tool . works. go run . works. But go tool . doesn't work: go: no such tool "."

go tool . should work too, like go tool $(go list .) go get -tool ./internal/mytool && go tool ./internal/mytool should work too, like go get -tool ./internal/mytool && go tool $(go list ./internal/mytool)