Documentation ¶
Index ¶
- Constants
- Variables
- func ApplyTemplate(t *template.Template, w io.Writer, m map[string]any) error
- func EnvMap() map[string]any
- func NewTemplate(name, contents, left, right string) (*template.Template, error)
- func NewTemplateFS(name, left, right string, fs fs.FS, patterns ...string) (*template.Template, error)
- func TemplateFiles(src, dest, left, right string, m map[string]any) error
- func TemplateFilesDefault(src, dest string, m map[string]any) error
- func TemplateFilesDefaultEnv(src, dest string) error
- func TemplateIO(r io.Reader, w io.Writer, left, right string, m map[string]any) error
- func TemplateIOEnv(r io.Reader, w io.Writer, left, right string) error
Constants ¶
View Source
const ( DefaultDelimLeft = "{{" DefaultDelimRight = "}}" )
Variables ¶
View Source
var (
Debug bool
)
Functions ¶
func NewTemplateFS ¶
func TemplateFilesDefaultEnv ¶
func TemplateIO ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.