Help us shape the future of Go! Take the 2026 Go Developer Survey

templates

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package templates provides utilities for parsing and analyzing Go templates.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractReferences

func ExtractReferences(tmplStr string) ([]string, error)

ExtractReferences finds all field references in a template string. Returns the full field paths (e.g., ".steps.step1.output", ".params.message").

func ExtractReferencesFromTemplate

func ExtractReferencesFromTemplate(tmpl *template.Template) []string

ExtractReferencesFromTemplate finds all field references in a parsed template.

Types

This section is empty.

Jump to

Keyboard shortcuts

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