Merge pull request #69 from hnnsgstfssn/add-generated-code-disclaimer

Add generated code disclaimer
This commit is contained in:
Mark Bates 2020-02-16 15:13:34 -05:00 committed by GitHub
commit defb2921c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -147,6 +147,7 @@ func Package(info here.Info, out string, decls parser.Decls) error {
name = "main" name = "main"
} }
fmt.Fprintf(f, "// Code generated by pkger; DO NOT EDIT.\n\n", name)
fmt.Fprintf(f, "package %s\n\n", name) fmt.Fprintf(f, "package %s\n\n", name)
fmt.Fprintf(f, "import (\n\t\"github.com/markbates/pkger\"\n\t") fmt.Fprintf(f, "import (\n\t\"github.com/markbates/pkger\"\n\t")
fmt.Fprintf(f, "\"github.com/markbates/pkger/pkging/mem\"\n)\n\n") fmt.Fprintf(f, "\"github.com/markbates/pkger/pkging/mem\"\n)\n\n")