Skip to content

Protobuf

CJ edited this page Jan 26, 2019 · 1 revision

Table of Contents

Overview

Go

How it's done

Sending Message

book := &pb.AddressBook{}
// ...

// marshall book proto.Message into byte[]
out, err := proto.Marshal(book)

// byte[] can be sent or saved to disk etc.
ioutil.WriteFile(fname, out, 0644);

C++

google::protobuf

  • core runtime library

google::protobuf::compiler

  • protoc compiler

Links

Clone this wiki locally