generator

package
v0.20.3 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2024 License: MIT Imports: 18 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)

Jump to

Keyboard shortcuts

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