godefault

package
v0.0.0-...-c763749 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 13, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() pkgenerator.Plugin

Types

type Plugin

type Plugin struct {
	// contains filtered or unexported fields
}

Plugin for implements pgkgenerator.Plugin

func (*Plugin) Generate

func (p *Plugin) Generate(g *protogen.GeneratedFile)

Generate to generate codes for specified file. except for the imports, by calling the generator's methods P, In, and Out.

func (*Plugin) Init

func (p *Plugin) Init(pp *protogen.Plugin, file *protogen.File) bool

Init is called once before code generated. The `file` will be ignored if return false.

func (*Plugin) Name

func (p *Plugin) Name() string

Name identifies the Plugin.

func (*Plugin) ParamFunc

func (p *Plugin) ParamFunc() func(name, value string) error

ParamFunc is used for accept parameters from the command line.

func (*Plugin) Version

func (p *Plugin) Version() string

Version identifies the Plugin version.

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL