forked from mirror/pkger
Moved build tags below code generation warning
This commit is contained in:
parent
bc0ae93dc6
commit
331c57067b
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue