Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix not to panic when struct contains an unexported field #35
Thank you so much for a wonderful library!
I encountered the same problem with https://github.com/shurcooL/githubv4/issues/37, so I fixed it not to panic and return an error instead. As you mentioned in the issue, I think it would be better for the library to return error rather ignoring the panic, since that makes it easier for users to debug!
I have a suggestion for how we can improve the implementation. Instead of modifying
I'll push a modified version to this PR, please take a look and let me know what you think.