Skip to content

Commit 9c44a96

Browse files
committed
fix: add missing omitempty tag options
1 parent 6bc317b commit 9c44a96

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

entities.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,9 +177,9 @@ func (td TypeDef) String() string {
177177
// Field represents a function parameter, result, or struct field.
178178
type Field struct {
179179
Type string `json:"type"`
180-
Doc string `json:"doc"`
181-
Comment string `json:"comment"`
182-
Names []string `json:"names"`
180+
Doc string `json:"doc,omitempty"`
181+
Comment string `json:"comment,omitempty"`
182+
Names []string `json:"names,omitempty"`
183183
}
184184

185185
// Ident returns the name of the struct field.

0 commit comments

Comments
 (0)