-
-
Notifications
You must be signed in to change notification settings - Fork 190
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
Declaring field parse order #291
Comments
There is no option for this, no. While I appreciate the use case, it's pretty niche, and reordering the fields would make understanding the grammar extremely difficult. |
I've not had immediate luck in finding how to disable the analyzer for a given package/file and understand the potentially poor experience with such a helper method. Another thought would be to allow defining a parser from an ebnf grammar where terminals are field names to not require struct tags at all, but that's probably much more complicated. |
I use golangci-lint which I believe includes this. It supports a //nolint:XXX directive |
Thanks, though I'm referring to its cmd invocation |
This (extremely helpful) library may be currently incompatible with projects enforcing fieldalignment in the likely chance their ast fields aren't defined in an already optimal order. Is there an existing option or feature that allows using something like reflect's
Type.FieldByName()
?The text was updated successfully, but these errors were encountered: