k1LoW / bufresolv

Buf resolver for github.com/bufbuild/protocompile

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Buf resolver for github.com/bufbuild/protocompile

License:MIT License


Languages

Language:Go 95.5%Language:Makefile 4.5%