From 9925b6cc05923fe499bd8cae27ccd2f2db6761b0 Mon Sep 17 00:00:00 2001 From: Hannes Gustafsson Date: Sun, 16 Feb 2020 22:05:56 +0000 Subject: [PATCH] Fix typo 4e1fe7b43f4b8575de9c86b101056ecb16a9e723 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. --- 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 4b478eb..2381bd9 100644 --- a/cmd/pkger/cmds/pack.go +++ b/cmd/pkger/cmds/pack.go @@ -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")