From d937e683a9c61d7fd64ad317571fc0647771e1d6 Mon Sep 17 00:00:00 2001 From: qqxhb <1252905006@qq.com> Date: Tue, 26 Mar 2024 16:51:30 +0800 Subject: [PATCH] feat: empty tag value --- field/tag.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/field/tag.go b/field/tag.go index 0a1a3e45..1478b15c 100644 --- a/field/tag.go +++ b/field/tag.go @@ -62,7 +62,7 @@ func (tag Tag) Build() string { tags := make([]string, 0, len(tag)) for _, k := range tagKeys(tag) { v := tag[k] - if k == "" || v == "" { + if k == "" { continue } tags = append(tags, k+":\""+v+"\"")