Skip to content
This repository has been archived by the owner on Jan 14, 2022. It is now read-only.

autobindings to automatically create FieldMap functions for your structs #33

Open
akshaydeo opened this issue Feb 26, 2015 · 1 comment

Comments

@akshaydeo
Copy link

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

@mholt
Copy link
Owner

mholt commented Feb 26, 2015

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants