Open vincentkerdraon opened 1 year ago
The json struct tag can be used without a first argument. In this case, the field name must be used. See https://pkg.go.dev/encoding/json
Example code:
type Person struct { Phone string json:",omitempty" }
json:",omitempty"
Makes sense, thanks for the PR. Can you also add a test?
The json struct tag can be used without a first argument. In this case, the field name must be used. See https://pkg.go.dev/encoding/json
Example code:
type Person struct { Phone string
json:",omitempty"
}