alecthomas / protobuf

A Protobuf IDL parser for Go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A Protobuf IDL Parser for Go

This package contains a cleanroom Protobuf IDL source parser for Go using 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

About

A Protobuf IDL parser for Go

License:Apache License 2.0


Languages

Language:Go 93.2%Language:Makefile 4.1%Language:Shell 2.7%