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

Don't generate code if typemap is unavailable #57

Open
Gurpartap opened this issue Oct 21, 2017 · 2 comments
Open

Don't generate code if typemap is unavailable #57

Gurpartap opened this issue Oct 21, 2017 · 2 comments

Comments

@Gurpartap
Copy link

Gurpartap commented Oct 21, 2017

^

@natefinch
Copy link
Member

So, I actually don't think this is valid. The typemap is technically optional. If your templates don't need .Type, you don't need the typemap (like if you're generating docs about the database schema or something).

It might be worth a warning if you run with -v or something... but we shouldn't fail.

@Gurpartap
Copy link
Author

My aim with this issue was to not allow generation of invalid code. Perhaps it is the template's responsibility to ensure this.

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