- example
message a {
    string b = 1;
}

message c {
    a c1 = 1;
    string c2 = 2;
}

- load go struct by generate 
type C struct {
    *A `protobuf:"bytes,1,opt,name=c1`
    C2 string
}

type A {
    B string
}

[image: QQ截图20220808205601.png]

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/protobuf/a72eb99c-cc80-4ecd-a591-ebe21b60de08n%40googlegroups.com.

Reply via email to