forked from mirror/pkger
Merge pull request #82 from xDuck/master
Add conditional build tag to generated files
This commit is contained in:
commit
c028e66556
|
@ -143,6 +143,7 @@ func Package(info here.Info, out string, decls parser.Decls) error {
|
|||
defer f.Close()
|
||||
|
||||
fmt.Fprintf(f, "// Code generated by pkger; DO NOT EDIT.\n\n")
|
||||
fmt.Fprintf(f, "// +build !skippkger\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