Local proto file resolver for github.com/bufbuild/protocompile


Keywords
protobuf
License
MIT
Install
go get github.com/k1LoW/protoresolv

Documentation

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()...)