From 05ca1f09aeb246a821da606b32ee9dea92ceaa1a Mon Sep 17 00:00:00 2001 From: Chris Broadfoot Date: Thu, 5 Jan 2017 15:26:00 -0800 Subject: [PATCH] [release-branch.go1.7] godoc/dl: add instructions for unstable "go get" Adds instructions for "go get golang.org/x/build/version/..." for the unstable version. Fixes golang/go#18337. Change-Id: Iea5e8fab7f00a053e3b42ef355277307addb635b Reviewed-on: https://go-review.googlesource.com/34823 Reviewed-by: Brad Fitzpatrick Reviewed-on: https://go-review.googlesource.com/34826 --- godoc/dl/tmpl.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/godoc/dl/tmpl.go b/godoc/dl/tmpl.go index 99ab4bb4..c4c31a8a 100644 --- a/godoc/dl/tmpl.go +++ b/godoc/dl/tmpl.go @@ -213,6 +213,11 @@ $(document).ready(function() {

{{.Version}} ▾

{{if .Stable}}{{else}}

This is an unstable version of Go. Use with caution.

+

If you already have Go installed, you can install this version by running:

+
+go get golang.org/x/build/version/{{.Version}}
+
+

Then, use the {{.Version}} command instead of the go command to use {{.Version}}.

{{end}} {{template "files" .Files}}