Documentation ¶
Overview ¶
Package protoc provides high level access to protoc command.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Cmd ¶
type Cmd struct {
// contains filtered or unexported fields
}
Cmd contains the information necessary to execute the protoc command.
type Option ¶
type Option func(*configs)
Option configures Generate configs.
func GenerateDependencies ¶
func GenerateDependencies() Option
GenerateDependencies enables code generation for the proto files that your protofile depends on. use this if your protoc plugin does not give you an option to enable the same feature.
func WithCommand ¶
WithCommand assigns a protoc command to use for code generation. This allows to use a single protoc binary in multiple code generation calls. Otherwise, `Generate` creates a new protoc binary each time it is called.
Click to show internal directories.
Click to hide internal directories.