generator

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const GeneratedCodeFileName = "generated.go"

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File struct {
	Package  string
	Imports  []string
	Handlers []*Handler
}

type GenData

type GenData = map[string]File

type Generator

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

func New

func New(ctx bool) *Generator

func (*Generator) Add

func (g *Generator) Add(filePath, pkg, imp string, handler *Handler)

func (*Generator) Generate

func (g *Generator) Generate() error

type Handler

type Handler struct {
	Package string
	Input   string
	Output  string
	Ctx     bool
}

Jump to

Keyboard shortcuts

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