We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6bc317b commit 9c44a96Copy full SHA for 9c44a96
entities.go
@@ -177,9 +177,9 @@ func (td TypeDef) String() string {
177
// Field represents a function parameter, result, or struct field.
178
type Field struct {
179
Type string `json:"type"`
180
- Doc string `json:"doc"`
181
- Comment string `json:"comment"`
182
- Names []string `json:"names"`
+ Doc string `json:"doc,omitempty"`
+ Comment string `json:"comment,omitempty"`
+ Names []string `json:"names,omitempty"`
183
}
184
185
// Ident returns the name of the struct field.
0 commit comments