Skip to content

Commit

Permalink
fix: add missing omitempty tag options
Browse files Browse the repository at this point in the history
  • Loading branch information
michenriksen committed Oct 18, 2023
1 parent 6bc317b commit 9c44a96
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions entities.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,9 @@ func (td TypeDef) String() string {
// Field represents a function parameter, result, or struct field.
type Field struct {
Type string `json:"type"`
Doc string `json:"doc"`
Comment string `json:"comment"`
Names []string `json:"names"`
Doc string `json:"doc,omitempty"`
Comment string `json:"comment,omitempty"`
Names []string `json:"names,omitempty"`
}

// Ident returns the name of the struct field.
Expand Down

0 comments on commit 9c44a96

Please sign in to comment.