0

I have a Go struct that has a proto child like this

type Animal struct {
    name string
    attributes *apb.Attributes
}

where apb.Attributes is a protobuf message.

using json.Marshal() and passing the struct doesn't seem to work, do I need to create the attributes child as a Go struct instead of adding the proto directly?

helpmeplease
  • 101
  • 1
  • 1
  • 9

0 Answers0