>
>
>
>
> On Saturday, July 5, 2014 1:41:14 PM UTC+1,
tim...@gmail.com wrote:
>>
>> Convert to map[string]interface{} first. Lower case the keys, then encode.
>>
>> On Saturday, July 5, 2014 9:36:06 AM UTC+1,
i...@bodokaiser.io wrote:
>>>
>>> Hello,
>>>
>>> I would like to have all field names of a struct lower cased by default.
>>> At the moment I define the lowercased field name as json tag:
>>>
>>> type FooBar struct {
>>> Id string `json:"id"`
>>> }
>>>
>>> However with bson-, validation-, database- and xml-tags the space is
>>> getting very very tight.
>>>
>>> Is there some hack how to implement the Unmarshaler Interface with just
>>> lowercasing all field names before proceeding?
>>>
>>> Bo
>