From 0728da387d83f5686366e1c35dbe1a3ee67104ba Mon Sep 17 00:00:00 2001 From: Hind3ight <83194637+Hind3ight@users.noreply.github.com> Date: Mon, 13 Dec 2021 09:00:32 +0800 Subject: [PATCH] Update generator.go --- src/action/generator.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/action/generator.go b/src/action/generator.go index b84f7d49..b282c7be 100644 --- a/src/action/generator.go +++ b/src/action/generator.go @@ -23,7 +23,7 @@ func Generate(files []string, fieldsToExportStr, format, table string) (lines [] count := 0 if strings.ToLower(filepath.Ext(files[1])) == "."+constant.FormatProto { //gen from protobuf - buf, pth := gen.GenerateFromProtobuf(files[0]) + buf, pth := gen.GenerateFromProtobuf(files[1]) if vari.Verbose { logUtils.PrintTo(i118Utils.I118Prt.Sprintf("protobuf_path", pth))