scaffolder

package
v0.0.0-...-e273963 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultFuncMap template.FuncMap = map[string]any{
	"template_code": func(s string) string {
		return s
	},
}

Functions

func DebugProcessor

func DebugProcessor(originalPath string, finalPath string, isDir bool, content []byte) error

func New

func New() *scaffolder

Types

type FileFilter

type FileFilter func(s string, d fs.DirEntry) FileFilterResult

type FileFilterResult

type FileFilterResult int
const (
	FileFilterAccept FileFilterResult = iota
	FileFilterSkip
)

func DefaultFileFilter

func DefaultFileFilter(path string, d fs.DirEntry) FileFilterResult

type OutputProcessor

type OutputProcessor func(originalPath string, finalPath string, isDir bool, content []byte) error

func FSProcessor

func FSProcessor(outputFolder string) OutputProcessor

type ScaffoldData

type ScaffoldData map[string]any

Jump to

Keyboard shortcuts

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