generator

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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadGlobalModuleFromSource

func LoadGlobalModuleFromSource(name, code string)

Types

type GenerateResultItem

type GenerateResultItem struct {
	FileName string `json:"fileName"`
	Code     string `json:"code"`
}

type Generator

type Generator struct {
	// contains filtered or unexported fields
}

func New

func New(getConfig func(key string) interface{}) *Generator

func (*Generator) Run

func (g *Generator) Run(jsCode string, doc *spec.T) (result []*GenerateResultItem, err error)

func (*Generator) RunFromModule

func (g *Generator) RunFromModule(module string, doc *spec.T) (result []*GenerateResultItem, err error)

Jump to

Keyboard shortcuts

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