github.com/megatontech/mynoteforgo@v0.0.0-20200507084910-5d0c6ea6e890/源码/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