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:
parent
6025e8de66
commit
d9ea1823e0
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user