Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Struct tags for json/cql marshalling/unmarshalling #30

Open
bipin-nag opened this issue Oct 11, 2015 · 1 comment
Open

Struct tags for json/cql marshalling/unmarshalling #30

bipin-nag opened this issue Oct 11, 2015 · 1 comment

Comments

@bipin-nag
Copy link

First off thanks to all developers for making this library. It is really useful. I would request you to generate struct tags for easier json or gocql conversion/usage.

Before using cqlc I used my own structs like the following:

type user struct {
    Username string `json:"username" cql:"username"`
}

This would be very helpful for using mentioned libraries.

@0x6e6562
Copy link
Member

0x6e6562 commented Nov 4, 2015

This sounds like a reasonable thing to want to do and it shouldn't make too much difference to the generated struct code. I'm not 100% on an ETA for this though.

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

No branches or pull requests

2 participants