template

package
v0.7.19 Latest Latest
Warning

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

Go to latest
Published: May 6, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package template renders destination templates with a fixed, safe variable set — no logic, no loops.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Render

func Render(tmpl string, ctx Context) (string, []string)

Render returns the rendered string and warnings for unresolved variables. Unresolved variables are left as their literal `{{ name }}` form.

Types

type Context

type Context struct {
	Output    string
	RunID     string
	RunDate   string
	StartedAt time.Time
	Schedule  Meta
	Skill     Meta
}

Context carries the values exposed to destination templates. Fields map directly to the `{{ ... }}` directives understood by Render.

type Meta

type Meta struct {
	Name string
}

Meta is the minimal identity (a name) of a schedule or skill surfaced to templates. Kept as a named type so templates can reach both `schedule.name` and `skill.name` via the same shape.

Jump to

Keyboard shortcuts

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