Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FileDescriptorSet ¶
func FileDescriptorSet(dir string, args ...string) (*descriptorpb.FileDescriptorSet, error)
FileDescriptorSet will load a single Gunk package, and return the proto FileDescriptor set of the Gunk package.
Currently, we only generate a FileDescriptorSet for one Gunk package.
Types ¶
type Generator ¶
func NewGenerator ¶ added in v0.7.0
NewGenerator returns an initialized Generator with the provided dir.
func (*Generator) GeneratePkg ¶
GeneratePkg runs the proto files resulting from translating gunk packages through a code generator, such as protoc-gen-go to generate Go packages.
It is provided as a wrapper of GeneratePkgs.
func (*Generator) GeneratePkgs ¶ added in v0.11.0
func (g *Generator) GeneratePkgs(paths []string, gens map[string][]config.Generator, protocPath map[string]string) error
GeneratePkgs runs the proto files resulting from translating gunk packages through a code generator, such as protoc-gen-go to generate Go packages.
Generated files are written to the same directory, next to the source gunk files.