mirror of
https://github.com/golang/go
synced 2024-11-18 12:44:49 -07:00
all: apply new machine-generated doc spec to files
Updates golang/go#13560. Change-Id: I1664807a065c7982a57d4dc9cee22ce261536c5b Reviewed-on: https://go-review.googlesource.com/39202 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
parent
d83db204ce
commit
620ecdb8d7
@ -236,7 +236,7 @@ func bundle(src, dst, dstpkg, prefix string) ([]byte, error) {
|
|||||||
|
|
||||||
var out bytes.Buffer
|
var out bytes.Buffer
|
||||||
|
|
||||||
fmt.Fprintf(&out, "// Code generated by golang.org/x/tools/cmd/bundle.\n")
|
fmt.Fprintf(&out, "// Code generated by golang.org/x/tools/cmd/bundle. DO NOT EDIT.\n")
|
||||||
if *outputFile != "" {
|
if *outputFile != "" {
|
||||||
fmt.Fprintf(&out, "//go:generate bundle %s\n", strings.Join(os.Args[1:], " "))
|
fmt.Fprintf(&out, "//go:generate bundle %s\n", strings.Join(os.Args[1:], " "))
|
||||||
} else {
|
} else {
|
||||||
|
2
cmd/bundle/testdata/out.golden
vendored
2
cmd/bundle/testdata/out.golden
vendored
@ -1,4 +1,4 @@
|
|||||||
// Code generated by golang.org/x/tools/cmd/bundle.
|
// Code generated by golang.org/x/tools/cmd/bundle. DO NOT EDIT.
|
||||||
// $ bundle
|
// $ bundle
|
||||||
|
|
||||||
// The package doc comment
|
// The package doc comment
|
||||||
|
@ -120,7 +120,7 @@ func sanitize(b []byte) []byte {
|
|||||||
return bytes.Replace(b, []byte("\xEF\xBB\xBF"), []byte("`+\"\\xEF\\xBB\\xBF\"+`"), -1)
|
return bytes.Replace(b, []byte("\xEF\xBB\xBF"), []byte("`+\"\\xEF\\xBB\\xBF\"+`"), -1)
|
||||||
}
|
}
|
||||||
|
|
||||||
const warning = `// Code generated by "makestatic"; DO NOT EDIT`
|
const warning = `// Code generated by "makestatic"; DO NOT EDIT.`
|
||||||
|
|
||||||
var license = fmt.Sprintf(`// Copyright %d The Go Authors. All rights reserved.
|
var license = fmt.Sprintf(`// Copyright %d The Go Authors. All rights reserved.
|
||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
// Code generated by "makestatic"; DO NOT EDIT
|
// Code generated by "makestatic"; DO NOT EDIT.
|
||||||
|
|
||||||
package static
|
package static
|
||||||
|
|
||||||
|
@ -40,7 +40,7 @@ func main() {
|
|||||||
outf := func(format string, args ...interface{}) {
|
outf := func(format string, args ...interface{}) {
|
||||||
fmt.Fprintf(&buf, format, args...)
|
fmt.Fprintf(&buf, format, args...)
|
||||||
}
|
}
|
||||||
outf("// AUTO-GENERATED BY mkstdlib.go\n\n")
|
outf("// Code generated by mkstdlib.go. DO NOT EDIT.\n\n")
|
||||||
outf("package imports\n")
|
outf("package imports\n")
|
||||||
outf("var stdlib = map[string]string{\n")
|
outf("var stdlib = map[string]string{\n")
|
||||||
f := io.MultiReader(
|
f := io.MultiReader(
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// AUTO-GENERATED BY mkstdlib.go
|
// Code generated by mkstdlib.go. DO NOT EDIT.
|
||||||
|
|
||||||
package imports
|
package imports
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user