github.com/zxy12/go_duplicate_112_new@v0.0.0-20200807091221-747231827200/src/cmd/go/mkalldocs.sh (about) 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 ./go.latest help documentation >alldocs.go 12 gofmt -w alldocs.go 13 rm go.latest