老版的 protoc-gen-go 会暴露一个 XXX_Unmarshal 接口,用于在 proto.Unmarshal 时进行调用,所以有一些同事选择会直接调用 message.XXX_Unmarshal 方法。
確定! 回上一頁