I have a database which I cannot change and all the fields are in SCREAMING_SNAKE_CASE.
When I generate my models, USER_ID becomes USER_ID in my Go structs, which is not what I want and doesn't follow the expected Go conventions: I expect my field to be generated as UserID.
This small change will make my model be properly generated.
I have a database which I cannot change and all the fields are in
SCREAMING_SNAKE_CASE
.When I generate my models,
USER_ID
becomesUSER_ID
in my Go structs, which is not what I want and doesn't follow the expected Go conventions: I expect my field to be generated asUserID
.This small change will make my model be properly generated.