Registry / serialization / jhump-protocompile

jhump-protocompile

JSON →
library0.0.0-20221021153901-4f6f732835e8gogounverified

A high-performance native Go protobuf compiler that parses, validates, and generates fully-linked descriptors from protobuf source files.

go get github.com/jhump/protocompile
INSTALL
IMPORT
SIG · JHUMP-PROTOCOMPILE
J
jhump-protocompile
serializationgov0.0.0-20221021153901-4f6f732835e8
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

protocompile
github.com/jhump/protocompile

Minimal example compiling a single .proto file using default resolver.

package main import ( "fmt" "github.com/jhump/protocompile" ) func main() { compiler := protocompile.Compiler{ Resolver: protocompile.WithStandardImports(&protocompile.SourceResolver{}), } descs, err := compiler.Compile("example.proto") if err != nil { panic(err) } fmt.Printf("Compiled %d files\n", len(descs)) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20221021153901-4f6f732835e8latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
jhump-protocompile — go get jhump-protocompile · libregistry