diff --git a/cmd/pkger/cmds/pack.go b/cmd/pkger/cmds/pack.go index adf917e..51af2ec 100644 --- a/cmd/pkger/cmds/pack.go +++ b/cmd/pkger/cmds/pack.go @@ -144,10 +144,10 @@ func Package(info here.Info, out string, decls parser.Decls, tags string) error } defer f.Close() + fmt.Fprintf(f, "// Code generated by pkger; DO NOT EDIT.\n\n") if len(tags) > 0 { fmt.Fprintf(f, "// +build %s\n\n", tags) } - fmt.Fprintf(f, "// Code generated by pkger; DO NOT EDIT.\n\n") fmt.Fprintf(f, "package %s\n\n", c.Name) fmt.Fprintf(f, "import (\n\t\"github.com/markbates/pkger\"\n\t") fmt.Fprintf(f, "\"github.com/markbates/pkger/pkging/mem\"\n)\n\n")