As an example:
|
EVR EVRTest `json:"evr,omitempty" yaml:"evr,omitempty"` // EVR version comparison |
This could be defined as EVR *EVRTest
The benefit here is if set nil, omitempty would behave correctly and not include this in resulting JSON documents. Currently, the types when marshaled can include a lot of useless sections, and being able to omit these correctly if not required would make them much smaller.