From 033d885315dd67c509d6f7f12f3e3a26bb1ca127 Mon Sep 17 00:00:00 2001 From: Michael Matloob Date: Thu, 10 Jun 2021 17:02:44 -0400 Subject: doc/go1.17: document go run pkg@version Fixes #46687 Change-Id: I6c311f15d3871a9824306b901fa0b81818ed2df8 Reviewed-on: https://go-review.googlesource.com/c/go/+/326870 Trust: Michael Matloob Run-TryBot: Michael Matloob TryBot-Result: Go Bot Reviewed-by: Bryan C. Mills --- doc/go1.17.html | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'doc') diff --git a/doc/go1.17.html b/doc/go1.17.html index 642bd60149..75c05c9e25 100644 --- a/doc/go1.17.html +++ b/doc/go1.17.html @@ -292,6 +292,18 @@ Do not send CLs removing the interior tags from such phrases. https://golang.org/design/draft-gobuild.

+

go run

+ +

+ go run now accepts arguments with version suffixes + (for example, go run + example.com/cmd@v1.0.0). This causes go + run to build and run packages in module-aware mode, ignoring the + go.mod file in the current directory or any parent directory, if + there is one. This is useful for running executables without installing them or + without changing dependencies of the current module. +

+

Gofmt

-- cgit v1.2.3-54-g00ecf