Skip to content

Commit

Permalink
feat: empty tag value
Browse files Browse the repository at this point in the history
  • Loading branch information
qqxhb authored and tr1v3r committed Mar 26, 2024
1 parent 31bdad8 commit d937e68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion field/tag.go
Original file line number Diff line number Diff line change
Expand Up @@ -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+"\"")
Expand Down

1 comment on commit d937e68

@yuzhenmongo
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why was this row of code removed? If I don’t want to generate json tag, how should I configure it?

Please sign in to comment.