tmpl

package
v0.0.0-beta Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package tmpl provides Go template expansion with sprig functions for YAML-based command sequences.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Expand

func Expand(data []byte, vars map[string]string) ([]byte, error)

Expand executes data as a Go template with sprig functions and merged variables. Pass nil for vars when no overrides are needed; use sprig's {{ env "VAR" }} for env vars.

func Load

func Load(path string, vars map[string]string) ([]string, error)

Load reads a YAML file, expanding Go templates before parsing, and returns a list of strings.

Types

This section is empty.

Jump to

Keyboard shortcuts

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