mirror of
https://github.com/protocolbuffers/protobuf-go.git
synced 2025-02-24 18:39:49 +00:00
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>