mirror of https://github.com/markbates/pkger.git
Fixed import block
This commit is contained in:
parent
7752bb822e
commit
9d57b03b3c
|
@ -142,9 +142,9 @@ func Package(info here.Info, out string, decls parser.Decls) error {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
fmt.Fprintf(f, "package %s\n\n", c.Name)
|
fmt.Fprintf(f, "package %s\n\n", c.Name)
|
||||||
fmt.Fprintf(f, "import \"github.com/markbates/pkger\"\n\n")
|
fmt.Fprintf(f, "import (\n\t\"github.com/markbates/pkger\"\n\t")
|
||||||
fmt.Fprintf(f, "import \"github.com/markbates/pkger/pkging/mem\"\n\n")
|
fmt.Fprintf(f, "\"github.com/markbates/pkger/pkging/mem\"\n)\n\n")
|
||||||
fmt.Fprintf(f, "\nvar _ = pkger.Apply(mem.UnmarshalEmbed([]byte(`")
|
fmt.Fprintf(f, "var _ = pkger.Apply(mem.UnmarshalEmbed([]byte(`")
|
||||||
|
|
||||||
if err := pkgutil.Stuff(f, info, decls); err != nil {
|
if err := pkgutil.Stuff(f, info, decls); err != nil {
|
||||||
return err
|
return err
|
||||||
|
|
Loading…
Reference in New Issue