1
0
mirror of https://github.com/golang/go synced 2024-11-17 22:24:47 -07:00

all: fix non-standard "DO NOT EDIT" comments for generated files

This commit is contained in:
Mark Rushakoff 2018-03-09 21:46:01 -08:00 committed by Mark Rushakoff
parent 32409a2dfc
commit 65804b0263
14 changed files with 14 additions and 18 deletions

View File

@ -179,8 +179,7 @@ var program = `// Copyright 2013 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// DO NOT EDIT.
// Generate with: go run gen.go{{if .Full}} -full{{end}} -output md5block.go
// Code generated by go run gen.go{{if .Full}} -full{{end}} -output md5block.go; DO NOT EDIT.
package md5

View File

@ -2,8 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// DO NOT EDIT.
// Generate with: go run gen.go -full -output md5block.go
// Code generated by go run gen.go -full -output md5block.go; DO NOT EDIT.
package md5

View File

@ -1,4 +1,4 @@
// Created by decgen --output dec_helpers.go; DO NOT EDIT
// Code generated by go run decgen.go -output dec_helpers.go; DO NOT EDIT.
// Copyright 2014 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style

View File

@ -171,7 +171,7 @@ func main() {
log.Fatal("usage: decgen [--output filename]")
}
var b bytes.Buffer
fmt.Fprintf(&b, "// Created by decgen --output %s; DO NOT EDIT\n", *output)
fmt.Fprintf(&b, "// Code generated by go run decgen.go -output %s; DO NOT EDIT.\n", *output)
fmt.Fprint(&b, header)
printMaps(&b, "Array")
fmt.Fprint(&b, "\n")

View File

@ -1,4 +1,4 @@
// Created by encgen --output enc_helpers.go; DO NOT EDIT
// Code generated by go run encgen.go -output enc_helpers.go; DO NOT EDIT.
// Copyright 2014 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style

View File

@ -150,7 +150,7 @@ func main() {
log.Fatal("usage: encgen [--output filename]")
}
var b bytes.Buffer
fmt.Fprintf(&b, "// Created by encgen --output %s; DO NOT EDIT\n", *output)
fmt.Fprintf(&b, "// Code generated by go run encgen.go -output %s; DO NOT EDIT.\n", *output)
fmt.Fprint(&b, header)
printMaps(&b, "Array")
fmt.Fprint(&b, "\n")

View File

@ -30,7 +30,7 @@ func main() {
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.`)
fmt.Fprintln(&buf)
fmt.Fprintln(&buf, "// generated by go run gen.go -output palette.go; DO NOT EDIT")
fmt.Fprintln(&buf, "// Code generated by go run gen.go -output palette.go; DO NOT EDIT.")
fmt.Fprintln(&buf)
fmt.Fprintln(&buf, "package palette")
fmt.Fprintln(&buf)

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// generated by go run gen.go -output palette.go; DO NOT EDIT
// Code generated by go run gen.go -output palette.go; DO NOT EDIT.
package palette

View File

@ -41,7 +41,7 @@ func main() {
}
}
const pre = `// generated by "go run gen.go". DO NOT EDIT.
const pre = `// Code generated by go run gen.go; DO NOT EDIT.
package imageutil

View File

@ -1,4 +1,4 @@
// generated by "go run gen.go". DO NOT EDIT.
// Code generated by go run gen.go; DO NOT EDIT.
package imageutil

View File

@ -82,7 +82,7 @@ func main() {
}
out.Reset()
out.WriteString(`// DO NOT EDIT; AUTO-GENERATED from sort.go using genzfunc.go
out.WriteString(`// Code generated from sort.go using genzfunc.go; DO NOT EDIT.
// Copyright 2016 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style

View File

@ -1,4 +1,4 @@
// DO NOT EDIT; AUTO-GENERATED from sort.go using genzfunc.go
// Code generated from sort.go using genzfunc.go; DO NOT EDIT.
// Copyright 2016 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style

View File

@ -2,8 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// DO NOT EDIT. GENERATED BY
// go run makeisprint.go -output isprint.go
// Code generated by go run makeisprint.go -output isprint.go; DO NOT EDIT.
package strconv

View File

@ -139,8 +139,7 @@ func main() {
fmt.Fprintf(&buf, `// Copyright 2013 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.`+"\n\n")
fmt.Fprintf(&buf, "// DO NOT EDIT. GENERATED BY\n")
fmt.Fprintf(&buf, "// go run makeisprint.go -output isprint.go\n\n")
fmt.Fprintf(&buf, "// Code generated by go run makeisprint.go -output isprint.go; DO NOT EDIT.\n\n")
fmt.Fprintf(&buf, "package strconv\n\n")
fmt.Fprintf(&buf, "// (%d+%d+%d)*2 + (%d)*4 = %d bytes\n\n",