generator

package
v0.28.2 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(language string, f NewFunc)

Types

type GeneratedFile

type GeneratedFile struct {
	Path    string
	Content bytes.Buffer
	Skip    bool
}

type Generator

type Generator interface {
	Gen() ([]*GeneratedFile, error)
}

func New

func New(config config.Config) (Generator, error)

type Golang

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

func (*Golang) Gen

func (g *Golang) Gen() ([]*GeneratedFile, error)

type NewFunc

type NewFunc func(target config.Config) (Generator, error)

type Typescript added in v0.21.0

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

func (*Typescript) Gen added in v0.21.0

func (t *Typescript) Gen() ([]*GeneratedFile, error)

Jump to

Keyboard shortcuts

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