generator

package
v0.0.0-...-7b54a0e Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FuncMap = template.FuncMap{
	"ToPublicName":  ToPublicName,
	"ToPrivateName": ToPrivateName,
}

Functions

func ToPrivateName

func ToPrivateName(name string) string

func ToPublicName

func ToPublicName(name string) string

Types

type Generator

type Generator struct {
	Steps []Step
	// contains filtered or unexported fields
}

func NewGenerator

func NewGenerator(config *config.Config, skeleton *Skeleton) *Generator

func (*Generator) AddStep

func (g *Generator) AddStep(st Step)

func (*Generator) Generate

func (g *Generator) Generate() error

type Skeleton

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

func NewSkeleton

func NewSkeleton() *Skeleton

type Step

type Step interface {
	Invoke(fs fs.FS, data *config.Config) error
}

Directories

Path Synopsis
storages

Jump to

Keyboard shortcuts

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