cmd/stringer: prepend "Code" to codegen warning

This allows Github to hide diffs in generated files. See:
https://github.com/github/linguist/blob/473282d/lib/linguist/generated.rb#L241

Change-Id: Ic0a9ed80ecc6130d81fd0ba10e2df48217eb14cc
Reviewed-on: https://go-review.googlesource.com/15073
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
Tamir Duberstein 2015-09-27 09:47:35 -04:00 committed by Brad Fitzpatrick
parent dec63b8e98
commit 4b07c5ce8a
1 changed files with 1 additions and 1 deletions

View File

@ -128,7 +128,7 @@ func main() {
}
// Print the header and package clause.
g.Printf("// generated by stringer %s; DO NOT EDIT\n", strings.Join(os.Args[1:], " "))
g.Printf("// Code generated by \"stringer %s\"; DO NOT EDIT\n", strings.Join(os.Args[1:], " "))
g.Printf("\n")
g.Printf("package %s", g.pkg.name)
g.Printf("\n")