protobuf-go/cmd/protoc-gen-go
Michael Stapelberg fe8430d2b0 cmd/protoc-gen-go: remove json struct tags from unexported fields
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>
2025-01-08 00:24:50 -08:00
..
2024-12-11 03:16:51 -08:00
2024-04-23 09:50:20 +00:00