Documentation ¶
Overview ¶
Package backend defines the Backend interface for generators.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend interface { // The name of this backend. Name() string // Lang returns the target language that this backend supports. Lang() string // Generate generates codes. Generate(req *plugin.Request, log LogFunc) (res *plugin.Response) // Options returns the available options with their descriptions. Options() []plugin.Option // BuiltinPlugins returns a list of built-in plugins of the backend. BuiltinPlugins() []*plugin.Desc // GetPlugin returns a plugin that match the description or nil. GetPlugin(desc *plugin.Desc) plugin.Plugin }
Backend handles the code generation for a language.
Click to show internal directories.
Click to hide internal directories.