Skip to content
This repository has been archived by the owner on Aug 22, 2022. It is now read-only.

Commit

Permalink
Merge pull request #52 from koddr/patch-1
Browse files Browse the repository at this point in the history
Fixed import block (generated pkged.go file)
  • Loading branch information
markbates authored Dec 11, 2019
2 parents 7752bb8 + 9d57b03 commit b0a67f7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/pkger/cmds/pack.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b0a67f7

Please sign in to comment.