Categorygithub.com/k1LoW/bufresolv
repositorypackage
0.7.5
Repository: https://github.com/k1low/bufresolv.git
Documentation: pkg.go.dev

# README

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

Usage

r, _ := bufresolv.New(bufresolv.BufDir("path/to/bofroot"))
comp := protocompile.Compiler{
	Resolver: protocompile.WithStandardImports(r),
}
fds, _ := comp.Compile(ctx, r.Paths()...)

References

  • bufbuild/buf: The best way of working with Protocol Buffers.