You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Go Serialization panics on nested struct field. #87
It seems the serialization is panicking in the case of a struct containing a nested field. Not sure whether this feature is supported or not, or is there anything that needs to be done on the .fbe file as nothing is mentioned on the docs fbe file definition:
package proto
struct NestedTest
{
NestedTest? nested;
}
The command used for building go source files: fbec --input=nested.fbe --output=. --go --final --proto --json
Go code for serialization:
cnt := filespb.NewNestedTest()
writer := filespb.NewNestedTestFinalModel(fbe.NewEmptyBuffer())
if _, err := writer.Serialize(cnt); err != nil {
panic("serialization error")
}
if ok := writer.Verify(); !ok {
panic("verify error")
}
Activity
sadiq1971 commentedon Mar 2, 2023
@chronoxor
L-LingRen commentedon Apr 13, 2023
Same the problem, any resolution?