dmarkham / enumer

A Go tool to auto generate methods for your enums
Other
410 stars 66 forks source link

Add support for XML and XML Attribute marshalling #78

Open 0xfrej opened 1 year ago

0xfrej commented 1 year ago

This PR aims to add support for generating XML and XML attribute marshaler and unmarshaler methods by adding two separate flags. xml and xmlattr to the generator option list.

I wanted to keep them as a separate option in case one would want to prohibit to marshal the generated enum into the other XML type.