Moved build tags below code generation warning

This commit is contained in:
Chris 2020-03-24 14:02:20 -04:00 committed by GitHub
parent bc0ae93dc6
commit 331c57067b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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")