protobuf-go/cmd/protoc-gen-go/internal_gengo
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
..
api_flags.go cmd/protoc-gen-go: refactor logic to be more compartmentalized 2019-07-19 08:16:51 +00:00
main.go cmd/protoc-gen-go: fix struct tag formatting 2019-08-15 22:18:29 +00:00
reflect.go cmd/protoc-gen-go, internal/filetype: clean up EnumType construction 2019-08-09 19:04:41 +00:00