Marshal/Unmarshal Protocol Buffers in Go

From NovaOrdis Knowledge Base
Jump to navigation Jump to search

Internal

Overview

This example uses this message definition:

message SomeMessage {
  int32 id = 1;
  bool  is_valid = 2;
  string name = 3;
  repeated string sample_list = 4;
}

The Go code is generated following the instructions from:

Protocol Buffers Go Code Generation

Marshaling and Unmarshaling