Change the header line to match for generated code

The following will make the headers match the go convention for generated code.

^// Code generated .* DO NOT EDIT\.$

https://golang.org/s/generatedcode
This commit is contained in:
Jon Lundy 2018-06-22 16:20:31 -06:00 committed by GitHub
parent 6025e8de66
commit d9ea1823e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -50,7 +50,7 @@ func Translate(c *Config) error {
defer bfd.Flush() defer bfd.Flush()
// Write the header. This makes e.g. Github ignore diffs in generated files. // Write the header. This makes e.g. Github ignore diffs in generated files.
if _, err = fmt.Fprint(bfd, "// Code generated by go-bindata.\n"); err != nil { if _, err = fmt.Fprint(bfd, "// Code generated by go-bindata. DO NOT EDIT.\n"); err != nil {
return err return err
} }
if _, err = fmt.Fprint(bfd, "// sources:\n"); err != nil { if _, err = fmt.Fprint(bfd, "// sources:\n"); err != nil {