Documentation
¶
Overview ¶
Package exampleplugin is a reference goboot plugin demonstrating every extension point (§46): it registers an annotation, contributes semantic analysis, generates an artifact, and provides a SQL dialect (as a database driver would). It doubles as documentation for plugin authors and as the end-to-end test subject for the plugin host.
Index ¶
- type Plugin
- func (*Plugin) Analyze(app *model.Application) []*annotation.Diagnostic
- func (*Plugin) Annotations() []*annotation.Definition
- func (*Plugin) Dialects() map[string]sqlgen.Dialect
- func (*Plugin) Generate(app *model.Application) ([]plugin.File, error)
- func (*Plugin) Name() string
- func (*Plugin) Version() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Plugin ¶
type Plugin struct{}
Plugin implements plugin.Plugin plus every optional capability interface.
func (*Plugin) Analyze ¶
func (*Plugin) Analyze(app *model.Application) []*annotation.Diagnostic
Analyze reports an informational summary of the application (§46.1). It never mutates the model.
func (*Plugin) Annotations ¶
func (*Plugin) Annotations() []*annotation.Definition
Annotations registers the @Exposed marker so the compiler recognizes it.
func (*Plugin) Dialects ¶
Dialects registers a SQL Server dialect, illustrating how a database driver contributes its placeholder style (§27.4). SQL Server uses @p1, @p2, ...