From 331c57067b5d51fb8c01b82debc4612b9e575ff2 Mon Sep 17 00:00:00 2001 From: Chris Date: Tue, 24 Mar 2020 14:02:20 -0400 Subject: [PATCH] Moved build tags below code generation warning --- cmd/pkger/cmds/pack.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")