protobuf-example

command module
v0.0.0-...-c40f745 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 4, 2021 License: MIT Imports: 5 Imported by: 0

README

protobuf-example

Learning Protocol Buffers from Google, with Go.

https://developers.google.com/protocol-buffers/docs/gotutorial

Requirements

  • go1.16
  • protoc. Download here. Add the binary to your PATH.
  • protoc-gen-go. Install by running this command outside a go module:
    go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
    

Running the example

With go, protoc and protoc-gen-go installed:

git clone https://github.com/haroflow/protobuf-example
cd protobuf-example

# Generate .go from protobuf schema
make

# Run the example
go run .

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
protos

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL