From 99bca65e792671ae6be290941ea8e896864d45c8 Mon Sep 17 00:00:00 2001 From: cui fliter Date: Tue, 11 Oct 2022 19:48:05 +0800 Subject: [PATCH] mockgen: fix function name on comment Signed-off-by: cui fliter --- mockgen/mockgen.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mockgen/mockgen.go b/mockgen/mockgen.go index 79cb921..96e15ec 100644 --- a/mockgen/mockgen.go +++ b/mockgen/mockgen.go @@ -693,7 +693,7 @@ func printVersion() { } } -// parseImportPackage get package import path via source file +// parsePackageImport get package import path via source file // an alternative implementation is to use: // cfg := &packages.Config{Mode: packages.NeedName, Tests: true, Dir: srcDir} // pkgs, err := packages.Load(cfg, "file="+source)