Text file src/cmd/go/mkalldocs.sh
1 #!/usr/bin/env bash 2 # Copyright 2012 The Go Authors. All rights reserved. 3 # Use of this source code is governed by a BSD-style 4 # license that can be found in the LICENSE file. 5 6 set -e 7 8 go build -o go.latest 9 # If the command used to generate alldocs.go changes, update TestDocsUpToDate in 10 # help_test.go. 11 GO111MODULE='' ./go.latest help documentation >alldocs.go 12 gofmt -w alldocs.go 13 rm go.latest 14