plugin

package
v0.0.1-beta.3 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager interface {
	FindPlugin(t *types.Type) []Plugin
	RegisterPlugin(plugin Plugin)
}

type Opt

type Opt func(Plugin)

type Plugin

type Plugin interface {
	Name() string
	Annotation() string
	CouldHandle(t *types.Type) bool
	Generate(ctx *generator.Context, imports namer.ImportTracker, w io.Writer, t *types.Type) (err error)

	// Finalize should write finish up functions, and any other content that's not
	// generated per-type.
	Finalize(ctx *generator.Context, imports namer.ImportTracker, w io.Writer) error
}

Jump to

Keyboard shortcuts

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