Skip to content

alecthomas/protobuf

Repository files navigation

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