templates

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

FS contains the embedded default templates for installation and generation.

View Source
var ReadFunc = func(path string) ([]byte, error) {
	return fs.ReadFile(FS, path)
}

ReadFunc is the function used by Read. Tests can replace it to simulate errors.

View Source
var WalkFunc = func(root string, fn fs.WalkDirFunc) error {
	return fs.WalkDir(FS, root, fn)
}

WalkFunc is the function used by Walk. Tests can replace it to simulate errors.

Functions

func Read

func Read(path string) ([]byte, error)

Read returns the contents of an embedded template file.

func Walk

func Walk(root string, fn fs.WalkDirFunc) error

Walk walks the embedded template filesystem under the given root.

Types

This section is empty.

Jump to

Keyboard shortcuts

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