render

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package render provides YAML template rendering helpers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FuncMap

func FuncMap(tracker *EnvTracker) template.FuncMap

FuncMap returns template helpers for YAML rendering.

func RenderBytes added in v0.0.4

func RenderBytes(name string, raw []byte) ([]byte, error)

RenderBytes renders a YAML template from raw bytes.

func RenderFile

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

RenderFile loads and renders a YAML template file.

Types

type EnvTracker

type EnvTracker struct {
	// contains filtered or unexported fields
}

EnvTracker tracks referenced environment variables during template rendering.

func (*EnvTracker) Missing

func (t *EnvTracker) Missing() []string

Missing returns a list of missing environment variables.

Jump to

Keyboard shortcuts

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