Add protobuf.md

This commit is contained in:
akp 2021-06-10 17:45:06 +01:00
parent 492cd3cdce
commit 0818a72f4c
No known key found for this signature in database
GPG key ID: AA5726202C8879B7
2 changed files with 14 additions and 0 deletions

View file

@ -42,6 +42,7 @@ Markdown docs and shell scripts for automating installation of things and docume
* [`node.md`](node.md) for installing Node.JS
* [`ohmyposh.sh`](ohmyposh.sh) for installing the Oh My Posh command line prompt
* [`poetry.sh`](poetry.sh) for installing Python Poetry
* [`profobuf.md`](protobuf.md) for installing the various things related to Protocol Buffers
* [`sourcetrail.md`](sourcetrail.md) for installing the SourceTrail codebase inspector
* [`vscode.md`](vscode.md)

13
protobuf.md Normal file
View file

@ -0,0 +1,13 @@
# Protocol Buffers
## `protoc`
1. Download `protoc-3.17.3-linux-x86_64.zip` from https://github.com/protocolbuffers/protobuf/releases/tag/v3.17.3
2. Extract `bin/protoc` to `/opt/bin`
3. Extract `include/google` to `/usr/local/include`
## `protoc-gen-go`
```bash
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
```