mirror of https://github.com/golang/go.git
Having a private field with a json tag does not necessary means the field needs to be exposed publicly. This change ignores the warning of such fields that contain a json tag with the field tag "-". The lines added in the unit tests will fail without these changes with the error: ``` a/a.go:36:2: unexpected diagnostic: struct field b has json tag but is not exported ``` Change-Id: Ife987b99c264ae3b60a702e43a1f9c778f8c2d62 Reviewed-on: https://go-review.googlesource.com/c/tools/+/245857 Run-TryBot: Rebecca Stambler <rstambler@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Rebecca Stambler <rstambler@golang.org> |
||
|---|---|---|
| .. | ||
| analysis | ||
| ast | ||
| buildutil | ||
| callgraph | ||
| cfg | ||
| expect | ||
| gccgoexportdata | ||
| gcexportdata | ||
| internal | ||
| loader | ||
| packages | ||
| pointer | ||
| ssa | ||
| types | ||
| vcs | ||