generator

package
v0.1.0-alpha Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

type Generator interface {
	// The name of the generator.
	Name() string

	// A short description of the generator.
	Description() string

	// Targets returns the targets the generator supports along with their summaries.
	Targets() map[string]string

	// DefaultOptions Returns the default options of the generator, or nil if it has none.
	DefaultOptions() interface{}

	// Generate generates code based on the options and targets.
	// The generated output must be either jen.Code, []byte, or string.
	Generate(ctx context.Context, options interface{}, specification *spec.Spec, target string) (interface{}, error)
}

Generator generates code (e.g. for frameworks)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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