protobuf-go/cmd/protoc-gen-go/testdata/proto2
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
..
enum.pb.go cmd/protoc-gen-go: special cases for MessageSet extensions 2018-09-24 17:25:31 +00:00
enum.proto go.mod: rename google.golang.org/proto as github.com/golang/protobuf/v2 2018-09-24 16:11:50 +00:00
fields.pb.go cmd/protoc-gen-go: don't generate default values for [default=""]. 2018-09-28 21:56:28 +00:00
fields.proto cmd/protoc-gen-go: don't generate default values for [default=""]. 2018-09-28 21:56:28 +00:00
nested_messages.pb.go cmd/protoc-gen-go: special cases for MessageSet extensions 2018-09-24 17:25:31 +00:00
nested_messages.proto go.mod: rename google.golang.org/proto as github.com/golang/protobuf/v2 2018-09-24 16:11:50 +00:00
proto2.pb.go cmd/protoc-gen-go: special cases for MessageSet extensions 2018-09-24 17:25:31 +00:00
proto2.proto go.mod: rename google.golang.org/proto as github.com/golang/protobuf/v2 2018-09-24 16:11:50 +00:00