From 9d57b03b3c2e7edf37e8aad03242f2490945d183 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vic=20Sh=C3=B3stak?= Date: Thu, 5 Dec 2019 22:09:34 +0300 Subject: [PATCH] Fixed import block --- cmd/pkger/cmds/pack.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/pkger/cmds/pack.go b/cmd/pkger/cmds/pack.go index cea99da..bbb81c9 100644 --- a/cmd/pkger/cmds/pack.go +++ b/cmd/pkger/cmds/pack.go @@ -142,9 +142,9 @@ func Package(info here.Info, out string, decls parser.Decls) error { return err } fmt.Fprintf(f, "package %s\n\n", c.Name) - fmt.Fprintf(f, "import \"github.com/markbates/pkger\"\n\n") - fmt.Fprintf(f, "import \"github.com/markbates/pkger/pkging/mem\"\n\n") - fmt.Fprintf(f, "\nvar _ = pkger.Apply(mem.UnmarshalEmbed([]byte(`") + fmt.Fprintf(f, "import (\n\t\"github.com/markbates/pkger\"\n\t") + fmt.Fprintf(f, "\"github.com/markbates/pkger/pkging/mem\"\n)\n\n") + fmt.Fprintf(f, "var _ = pkger.Apply(mem.UnmarshalEmbed([]byte(`") if err := pkgutil.Stuff(f, info, decls); err != nil { return err