forked from mirror/pkger
Fix typo
4e1fe7b43f
introduced a Fprintf call that
passes a variable without a formatting directive. This will cause go vet
-printf to fail with
cmd/pkger/cmds/pack.go:150: no formatting directive in Fprintf call
Drop the variable from the call.
This commit is contained in:
parent
defb2921c0
commit
9925b6cc05
|
@ -147,7 +147,7 @@ func Package(info here.Info, out string, decls parser.Decls) error {
|
|||
name = "main"
|
||||
}
|
||||
|
||||
fmt.Fprintf(f, "// Code generated by pkger; DO NOT EDIT.\n\n", name)
|
||||
fmt.Fprintf(f, "// Code generated by pkger; DO NOT EDIT.\n\n")
|
||||
fmt.Fprintf(f, "package %s\n\n", 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