From 339b7aca77b2e2409123a95b5041aadcee65965a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E8=8C=B6=E6=B8=85=E6=AC=A2?= Date: Tue, 18 Feb 2025 21:26:20 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E6=9E=90=E5=AD=97=E6=AE=B5=E6=8F=8F?= =?UTF-8?q?=E8=BF=B0,=20=E6=94=AF=E6=8C=81=20###=20=E4=BB=A3=E6=9B=BF=20`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- struct_field.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/struct_field.go b/struct_field.go index ceac038..ac8932c 100644 --- a/struct_field.go +++ b/struct_field.go @@ -54,7 +54,7 @@ func (psf parseStructFieldTag) GetParamDesc(structField reflect.StructField) str for _, tag := range descTagList { tagVal := structField.Tag.Get(tag) if tagVal != "" { - return tagVal + return strings.ReplaceAll(tagVal, "###", "`") } } // 没有显示的设置参数描述, 则使用参数名作为参数描述