From 1054b15cce1f43707930fc6ce3c744936e05b420 Mon Sep 17 00:00:00 2001 From: yuanzhao <2206582181@qq.com> Date: Wed, 8 Nov 2023 15:28:00 +0800 Subject: [PATCH] =?UTF-8?q?add:=20=E7=94=9F=E6=88=90=E7=9A=84=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E5=B0=BD=E9=87=8F=E4=BF=9D=E6=8C=81=E4=B8=80=E8=87=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- console/commands/protoc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/console/commands/protoc.go b/console/commands/protoc.go index c455f79..0901c1d 100644 --- a/console/commands/protoc.go +++ b/console/commands/protoc.go @@ -253,7 +253,7 @@ func genProtoTag(out string) { fileNewStr = append(fileNewStr, newStr...) } - defer os.WriteFile(file.Path, fileNewStr, 0760) + defer os.WriteFile(file.Path, []byte(strings.TrimSpace(string(fileNewStr))), 0760) } } }