Home

Awesome

Local proto file resolver for github.com/bufbuild/protocompile Go Reference build Coverage Code to Test Ratio Test Execution Time

Usage

importPaths := []string{"path/to/your/proto"}
r, _ := protoresolv.New(protoresolv.New(importPaths)
comp := protocompile.Compiler{
	Resolver: protocompile.WithStandardImports(r),
}
fds, _ := comp.Compile(ctx, r.Paths()...)