plugin

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterPlugin

func RegisterPlugin(plugin Plugin)

Types

type Plugin

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

func FindPlugin

func FindPlugin(t *types.Type) Plugin

Jump to

Keyboard shortcuts

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