We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Please answer these questions before submitting your issue. Thanks!
go version
go env
type Foo struct { Bar string `db:"bar" json:"bar"` }
If there is a TAB symbol before the json, it makes the json tag unreadable (we get ^Ijson instead).
The text was updated successfully, but these errors were encountered:
https://golang.org/pkg/reflect/#StructTag is pretty clear that only space (U+0020 ' ') is valid whitespace, so this is probably a job for cmd/vet.
cmd/vet
Sorry, something went wrong.
It already alerts on tab tags
go vet main.go:9: struct field tag `db:"bar" json:"bar"` not compatible with reflect.StructTag.Get: bad syntax for struct tag key exit status 1
go version go version devel +c3b3e7b Fri Apr 8 21:06:39 2016 +0000 darwin/amd64
Okay, so nothing to do here, then.
No branches or pull requests
Please answer these questions before submitting your issue. Thanks!
go version
)?1.6
go env
)?All platforms
Suppose we have a struct with a tags.
If there is a TAB symbol before the json, it makes the json tag unreadable (we get ^Ijson instead).
json tag is silently ignored
The text was updated successfully, but these errors were encountered: