https://github.com/alecthomas/protobuf
A Protobuf IDL parser for Go
https://github.com/alecthomas/protobuf
go golang parser protobuf protocol-buffers
Last synced: 4 months ago
JSON representation
A Protobuf IDL parser for Go
- Host: GitHub
- URL: https://github.com/alecthomas/protobuf
- Owner: alecthomas
- License: apache-2.0
- Created: 2021-12-10T01:01:37.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2025-03-11T10:35:54.000Z (4 months ago)
- Last Synced: 2025-03-11T11:34:31.727Z (4 months ago)
- Topics: go, golang, parser, protobuf, protocol-buffers
- Language: Go
- Homepage:
- Size: 298 KB
- Stars: 15
- Watchers: 3
- Forks: 4
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# A Protobuf IDL Parser for Go
This package contains a cleanroom Protobuf IDL source parser for Go using [Participle](https://github.com/alecthomas/participle).
This was extracted from an example within Participle.
## Tests
Conformance tests are pulled from protoc and can be run with `go test ./...`.
You can re-sync the upstream tests by running `make -C testdata`.Compiler tests are end to end tests comparing generated FileDesciptors
against protoc generated FileDescriptors. The protoc generated
FileDescriptors are located in `compiler/testdata/pb/*.pb` and
source files in `compiler/testdata/*.proto`. Protoc FileDescriptors can be
regenerated with `make -C compiler`