From 281050ffddd88206d068f5f9e9cfa31cf01c9446 Mon Sep 17 00:00:00 2001
From: Jay Conrod This is an unstable version of Go. Use with caution. If you already have Go installed, you can install this version by running: Then, use the
-When you want to make a module available for other developers, you publish it so that it's visible to Go tools. Once you've published the module, developers importing its packages will be able to resolve a dependency on the module by running commands such as go get.
+When you want to make a module available for other developers, you publish it so that it's visible to Go tools. Once you've published the module, developers importing its packages will be able to resolve a dependency on the module by running commands such as
-go get golang.org/dl/{{.Version}}
+go install golang.org/dl/{{.Version}}@latest
{{.Version}}
command instead of the go
command to use {{.Version}}.Publishing a module
go get
.
Module version numbering
diff --git a/_content/doc/install/source.html b/_content/doc/install/source.html
index 4fff34fb..8bbe4960 100644
--- a/_content/doc/install/source.html
+++ b/_content/doc/install/source.html
@@ -398,19 +398,9 @@ To install one of the tools (godoc
in this case):
-$ go get golang.org/x/tools/cmd/godoc +$ go install golang.org/x/tools/cmd/godoc@latest-
-To install these tools, the go
get
command requires
-that Git be installed locally.
-
-You must also have a workspace (GOPATH
) set up;
-see How to Write Go Code for the details.
-
@@ -504,8 +494,8 @@ you must set GOPATH
to another location to avoid conflicts.
The directory where executables outside the Go distribution are installed
using the go command. For example,
-go get golang.org/x/tools/cmd/godoc
downloads, builds, and
-installs $GOBIN/godoc
. By default, $GOBIN
is
+go install golang.org/x/tools/cmd/godoc@latest
downloads, builds,
+and installs $GOBIN/godoc
. By default, $GOBIN
is
$GOPATH/bin
(or $HOME/go/bin
if GOPATH
is not set). After installing, you will want to add this directory to
your $PATH
so you can use installed tools.