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

validate and report the struct tag is invalid #12

Closed
wants to merge 1 commit into from

Conversation

ccoVeille
Copy link
Contributor

@ccoVeille ccoVeille commented May 18, 2022

using structtag.Analyzer is the one in charge of doing that.

This is a fix for #11

It's a draft version, as I'm awaiting a reply to my bug report on golang.org/x/tools

golang/go#52973

using structtag.Analyzer is the one in charge of doing that.
@ccoVeille
Copy link
Contributor Author

As discuss in #11, the tool should stay simple, and shouldn't try to detect things that other tools or linters are already doing. https://golangci-lint.run/usage/linters/#govet

So I'm closing the PR, and will open a new one to document a bit, and add some unit tests about not validating invalid tags.

@ccoVeille ccoVeille closed this May 18, 2022
@ccoVeille ccoVeille mentioned this pull request May 18, 2022
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.

1 participant