Closed vanackere closed 3 years ago
For the following types:
type S struct { A string B string } type User struct { MaybeEmpty S `json:",omitempty"` }
The following code was generated:
func (x *S) IsCodecEmpty() bool { return !(x.A != "" && x.B != "" && true) }
Now we generate:
func (x *S) IsCodecEmpty() bool { return !(x.A != "" || x.B != "" || false) }
Should fix https://github.com/ugorji/go/issues/344
Thanks much. Great catch.
For the following types:
The following code was generated:
Now we generate:
Should fix https://github.com/ugorji/go/issues/344