Codebase list golang-github-gobuffalo-packr / bb70584
Add code generation comment to top of generated files By convention, a comment at the top of a file which matches this regular expression: '^// Code generated .* DO NOT EDIT$' indicates that a file is generated, and so it can be treated differently by linters, code review tools, etc. This convention was established in https://github.com/golang/go/issues/13560#issuecomment-276866852. This commit adds such a comment to the top of generated files. Spencer Nelson 6 years ago
1 changed file(s) with 3 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
00 package builder
11
2 var tmpl = `package {{.Name}}
2 var tmpl = `// Code generated by github.com/gobuffalo/packr. DO NOT EDIT
3
4 package {{.Name}}
35
46 import "github.com/gobuffalo/packr"
57