Re: [go-nuts] Unmarshalling and tags

2016-06-21 Thread Nate Finch
I'd like to see something like this: type Payment struct { ActionType paypal.ActionType `xml,yaml,json:"actionType,omitempty"` ReceiverList paypal.ReceiverList `xml,yaml,json:"actionType,omitempty"` } -- You received this message because you are subscribed to the Google Groups

Re: [go-nuts] Unmarshalling and tags

2016-06-21 Thread Ain
teisipäev, 21. juuni 2016 9:47.54 UTC+3 kirjutas rog: > > I feel your pain - we quite often have tags with entries for three > formats (JSON, YAML and BSON) - but I'm not sure that collapsing them > is necessarily a good idea, as the named tags indicate that the object > is explicitly intended

Re: [go-nuts] Unmarshalling and tags

2016-06-21 Thread roger peppe
I feel your pain - we quite often have tags with entries for three formats (JSON, YAML and BSON) - but I'm not sure that collapsing them is necessarily a good idea, as the named tags indicate that the object is explicitly intended to be able to be marshaled with those formats. That said, it's

Re: [go-nuts] Unmarshalling and tags

2016-06-20 Thread Jakob Borg
2016-06-19 12:42 GMT+02:00 'Mihai B' via golang-nuts : > I have a struct that needs to be marshalled/unmarshalled using various > serialization formats(xml, json, name/value). The tags start to represent a > considerable effort[0] so I'm wondering if this is a common

[go-nuts] Unmarshalling and tags

2016-06-19 Thread 'Mihai B' via golang-nuts
Hi there, I have a struct that needs to be marshalled/unmarshalled using various serialization formats(xml, json, name/value). The tags start to represent a considerable effort[0] so I'm wondering if this is a common use case and if a change[1] to the encoding packages to specify the tag