I'm writing a go tcp client to receive events from a server. The server response are bytes structured in this way:
Can I use Protobufs for this? If yes how should I structure the message?
Kind regards, Jurgen
The answer is: yes, you can. And it must looks something like this:
proto file:
syntax = "proto3";
message Event {
bytes start = 1;
bytes length = 2;
...
repeated bytes param = 9;
}
your go struct will be:
type Event struct {
Start []byte
Length []byte
...
Param [][]byte
}