Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/vet: Doesn't complain when the field tags are not parsable by the reflect: StructTag.Get() call #14466
Hi, I have noticed a problem with
Let's take an example struct :
As you can see I have set the field tags, and while the tags looks OK, the tag format is incorrect. To illustrate, the example code:
The problem here is the coma character between
I will raise a pull request if the maintainers agree that this is a bug in the go vet tool indeed.
Actually the tags are parseable in this case. The tag
That said, it's obviously a mistake and probably one vet should catch even though it's not technically illegal. Will send a CL.