protobuf-go/cmd
Joe Tsai 17581daabb cmd/protoc-gen-go: fix struct tag formatting
If a string default value contains a backtick, it breaks the
struct tag formatting logic which assumes such characters never exist.
Fix this by adding a structTags type, whose String method knows how
to properly escape the value.

Change-Id: I96fe5a6630387eac89eef429da5f917125570e4c
Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/189557
Reviewed-by: Herbie Ong <herbie@google.com>
2019-08-15 22:18:29 +00:00
..
protoc-gen-go cmd/protoc-gen-go: fix struct tag formatting 2019-08-15 22:18:29 +00:00
protoc-gen-go-grpc all: refactor extensions, add proto.GetExtension etc. 2019-08-08 18:20:51 +00:00