binding icon indicating copy to clipboard operation
binding copied to clipboard

autobindings to automatically create FieldMap functions for your structs

Open akshaydeo opened this issue 10 years ago • 1 comments

Hey,

First of all great work. So when I started using binding, one of the overheads I felt was writing FieldMap function.

So leveraging the go generate power, I have created a tool called autobindings that automatically generates the field map function.

Right now, it checks for the JSON tag, if it's available it uses the same mapping, if not it uses the field name for mapping.

I would love if you could refer this library in your documentation :). And let me know your feedback.

Thanks

akshaydeo avatar Feb 26 '15 09:02 akshaydeo

Ahhh cool! Thanks for doing this! It was a pain point for quite a few users I think. I'll take a look soon and add it to the docs.

mholt avatar Feb 26 '15 13:02 mholt