https://github.com/nlm/protoc-gen-demo
Demo of how to make a protoc generator in Go
https://github.com/nlm/protoc-gen-demo
Last synced: 5 months ago
JSON representation
Demo of how to make a protoc generator in Go
- Host: GitHub
- URL: https://github.com/nlm/protoc-gen-demo
- Owner: nlm
- License: mit
- Created: 2022-06-28T13:24:12.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-07-10T20:04:24.000Z (about 4 years ago)
- Last Synced: 2025-01-21T21:47:36.839Z (over 1 year ago)
- Language: Makefile
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# protoc-gen-demo
a demo on how to make a minimal protobuf code generator
## how to use
Build the generator
```bash
$ make build
go build -o protoc-gen-demo main.go
```
Use it with protoc
```bash
$ make demo
protoc --demo_out=demo --plugin protoc-gen-demo=protoc-gen-demo demo/demo.proto
go run ./cmd/demo
Hello, Demo!
```