gogoprotobuf http://gogo.github.io/doc/ supports adding tags for more 
serialization formats.
See the section on More Serialization Formats.

On Tuesday, 21 July 2015 23:22:00 UTC+2, Ben Davies wrote:
> Hi!
> Not sure if this is the right forum, if not please let me know and I will 
> direct my question there.
> I've been experimenting with protobufs and grpc in Go and love it! 
> however, I have a question: is it possible to add additional golang tags to 
> the output golang code via the proto file? Maybe as a extension? The reason 
> I ask is that I'd like to add some additional tags that will make it easier 
> to export the members as XML (much like the JSON tags do) or to add an 
> additional layer of validation (to ensure that a string is a valid URL or 
> ISO-3166-A2 2 letter country code).
> I'd like to do this on the proto file side that way I can continue to 
> generate the go code without having to keep adding back my additional tags.
> Any thoughts?
> Cheers!
> Ben

You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

Reply via email to