Documentation ¶
Index ¶
Constants ¶
View Source
const VERSION = "0.1.0"
VERSION is the version of the plugin.
Variables ¶
This section is empty.
Functions ¶
func RunPlugin ¶
func RunPlugin(request *plugin_go.CodeGeneratorRequest) (*plugin_go.CodeGeneratorResponse, error)
Types ¶
type Flags ¶
type Flags struct {
// contains filtered or unexported fields
}
func ParseFlags ¶
ParseFlags parses the supplied options are returns a `Flags` object to the caller.
Parameters:
- `w` - the `io.Writer` to use for printing messages (help, version, etc.)
- `args` - the set of args the program was invoked with (typically `os.Args`)
func (*Flags) HasMatch ¶
HasMatch returns whether or not the supplied args are matches. For example, passing `--help` will match, or some unknown parameter, but passing nothing will not.
func (*Flags) PrintHelp ¶
func (f *Flags) PrintHelp()
PrintHelp prints the usage string including all flags to the `io.Writer` that was supplied to the `Flags` object.
func (*Flags) PrintVersion ¶
func (f *Flags) PrintVersion()
PrintVersion prints the version string to the `io.Writer` that was supplied to the `Flags` object.
func (*Flags) ShowVersion ¶
ShowVersion determines whether or not to show the version message
type PluginOptions ¶
func ParseOptions ¶
func ParseOptions(req *plugin_go.CodeGeneratorRequest) (*PluginOptions, error)
Directories ¶
Path | Synopsis |
---|---|
cmd
|
|
protoc-gen-whatever
protoc-gen-whatever is used to generate stuff from proto files.
|
protoc-gen-whatever is used to generate stuff from proto files. |
Click to show internal directories.
Click to hide internal directories.