mirror of
https://github.com/protocolbuffers/protobuf-go.git
synced 2025-03-14 10:21:28 +00:00
This commit does not change behavior because the encoding/json package ignores unexported fields. To encode a Protobuf message into JSON, users should reach for protobuf/encoding/protojson. With this change, the generated code (.pb.go files) passes go vet. I also made the integration test run go vet so that we do not regress. For golang/protobuf#1657 Fixes golang/protobuf#1658 Change-Id: I0a677d09e4517b2649bfcfe76a49194c7ccbb823 Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/641036 Reviewed-by: Damien Neil <dneil@google.com> Reviewed-by: Chressie Himpel <chressie@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>