generators

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

type Generator[T any] struct {
	Root    string
	Data    T
	FuncMap template.FuncMap
	// contains filtered or unexported fields
}

func NewGenerator

func NewGenerator[T any](
	rootDest string,
	data T,
	funcMap template.FuncMap,
) *Generator[T]

func (*Generator[T]) AppendTemplateToFile

func (g *Generator[T]) AppendTemplateToFile(templatePath string, filePathToAppend string)

func (*Generator[T]) PrintSummary

func (g *Generator[T]) PrintSummary()

func (*Generator[T]) RenderTemplateToFile

func (g *Generator[T]) RenderTemplateToFile(templatePath string, destFilePath string)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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