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:
parent
dec63b8e98
commit
4b07c5ce8a
|
@ -128,7 +128,7 @@ func main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Print the header and package clause.
|
// 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("\n")
|
||||||
g.Printf("package %s", g.pkg.name)
|
g.Printf("package %s", g.pkg.name)
|
||||||
g.Printf("\n")
|
g.Printf("\n")
|
||||||
|
|
Loading…
Reference in New Issue