My generated protobuf Go struct looks like:
type ProtoStruct {
A []*SomeStruct
}
I am now trying to append a nil
entry to that slice with protoreflect
.
I tried:
var v protoreflect.Value // somehow get this value from previous steps
v.List().Append(protoreflect.ValueOf(nil))
And it panics with:
type mismatch: cannot convert nil to message