generators

package
v0.4.6 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Generators = make(map[string]*Generator)

Functions

func RegisterGenerator

func RegisterGenerator(s *Generator)

Types

type Generator

type Generator struct {
	Name  string
	Print func(schema *spec.T, options *PrintOptions) []*generator.GenerateResultItem
}

func NewGeneratorFromFile

func NewGeneratorFromFile(file string) *Generator

func NewGeneratorFromSourceCode

func NewGeneratorFromSourceCode(name, code string) *Generator

type PrintOptions

type PrintOptions struct {
	GetConfig func(key string) interface{}
}

Jump to

Keyboard shortcuts

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