Skip to content

Crash When Generating Services Using gogoproto.embed #319

Description

@hunter001325

1、I define protocolbuff message with gogoproto.embed, for example:
`
message UserBase {
optional int64 id = 1;
}

message UserDetail {
optional UserBase UserBase = 1 [(gogoproto.nullable) = false, (gogoproto.embed) = true];
optional string name = 2 [(gogoproto.nullable) = true];
}
`

crash as below:
image

There hasn't Names:
image

2、protocolbuff support embed filed:
https://godoc.org/github.com/gogo/protobuf/gogoproto#hdr-More_Canonical_Go_Structures
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions