Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alecthomas/protobuf
A Protobuf IDL parser for Go
https://github.com/alecthomas/protobuf
go golang parser protobuf protocol-buffers
Last synced: 17 days 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 (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2024-10-23T04:22:13.000Z (21 days ago)
- Last Synced: 2024-10-24T12:23:25.612Z (19 days ago)
- Topics: go, golang, parser, protobuf, protocol-buffers
- Language: Go
- Homepage:
- Size: 300 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`