我正在尝试将内部类型转换为protobuf生成的类型,但无法转换数组。我是新手,所以我不知道所有可以提供帮助的方法。但这是我的尝试。当运行这段代码时,我得到panic:runtimeerror:invalidmemoryaddressornilpointerdereference[signalSIGSEGV:segmentationviolationcode=0x1addr=0x8pc=0x86c724]以及许多其他字节数据。我想知道将内部结构转换为protobufs的最佳方法是什么。我认为我遇到的最大麻烦是protobuf生成的代码是指针。原型(prototype)定义message