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()...)
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Local proto file resolver for github.com/bufbuild/protocompile
License
k1LoW/protoresolv
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Local proto file resolver for github.com/bufbuild/protocompile
Topics
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published