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

check for go keywords when calling LowerName() #99

Merged
merged 1 commit into from
May 13, 2016
Merged

check for go keywords when calling LowerName() #99

merged 1 commit into from
May 13, 2016

Conversation

potatogopher
Copy link
Contributor

@potatogopher potatogopher commented May 13, 2016

I want to name my model Interface but the methods that would be generated in models/interface.go end up writing a couple methods with the following syntax:
Add(ctx context.Context, interface *Interface) (*Interface, error)
As you can see, interface cannot be the parameter name. Goify wasn't being called on LowerName() to make this possible. I made that change to make it possible.

@bketelsen
Copy link
Member

LGTM

@bketelsen bketelsen merged commit c173461 into goadesign:master May 13, 2016
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

Successfully merging this pull request may close these issues.

2 participants