protobuf-go/cmd
Damien Neil ccf3fa6cad cmd/protoc-gen-go: don't generate default values for [default=""].
The previous generator considers a default value of "" (valid only for
string and bytes fields) to be unset, and does not generate a const or
var to hold the default value.

e.g.,

  message M {
    optional F string = 1 [default=""];
  }

does not generate this constant, even though the field has a default
value:

  const Default_M_F string = ""

Maintain consistent output.

Change-Id: Ib172b02d59c15c05e19a7056d05ce1c619a2fa40
Reviewed-on: https://go-review.googlesource.com/138518
Reviewed-by: Joe Tsai <thebrokentoaster@gmail.com>
2018-09-28 21:56:28 +00:00
..
protoc-gen-go cmd/protoc-gen-go: don't generate default values for [default=""]. 2018-09-28 21:56:28 +00:00
protoc-gen-go-grpc cmd/protoc-gen-go-grpc: add deprecation comments 2018-09-28 21:55:39 +00:00