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
Queried results end up camelcased instead of underscored #69
Comments
Why would a struct have snake cased (underscored) names? |
snake_case is C style, Go uses CamelCase |
Furthermore, you can't unpack to a snake_cased name, because it would be a private struct field (because it's lowercase) |
Well, there's no error in creating variables that have underscores. Like "User_id". |
I'd also say that this is a doc fix. |
All the results with underscore names become camelcased and are not added to the returned struct if it has underscored names.
When creating the table, no warning is given about this and the table columns are not converted to camelcase either.
No mention about this in the documentation.
The text was updated successfully, but these errors were encountered: