https://github.com/k1low/bufresolv
Buf resolver for github.com/bufbuild/protocompile
https://github.com/k1low/bufresolv
buf buf-schema-registry bufbuild protobuf
Last synced: about 1 year ago
JSON representation
Buf resolver for github.com/bufbuild/protocompile
- Host: GitHub
- URL: https://github.com/k1low/bufresolv
- Owner: k1LoW
- License: mit
- Created: 2024-04-28T13:22:47.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-02-10T00:14:01.000Z (over 1 year ago)
- Last Synced: 2025-03-29T05:41:36.577Z (about 1 year ago)
- Topics: buf, buf-schema-registry, bufbuild, protobuf
- Language: Go
- Homepage:
- Size: 104 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Buf resolver for github.com/bufbuild/protocompile [](https://pkg.go.dev/github.com/k1LoW/bufresolv) [](https://github.com/k1LoW/bufresolv/actions/workflows/ci.yml)   
## Usage
``` go
r, _ := bufresolv.New(bufresolv.BufDir("path/to/bofroot"))
comp := protocompile.Compiler{
Resolver: protocompile.WithStandardImports(r),
}
fds, _ := comp.Compile(ctx, r.Paths()...)
```
## References
- [bufbuild/buf](https://github.com/bufbuild/buf): The best way of working with Protocol Buffers.