templatesafety

package
v0.1.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateTemplateJSON

func ValidateTemplateJSON(raw []byte) error

ValidateTemplateJSON rejects templates embedded in JSON by scanning for {{ ... }} blocks.

func ValidateTemplateString

func ValidateTemplateString(value string) error

ValidateTemplateString rejects template strings that reference denied functions. It scans all {{ ... }} expressions and returns an error on the first forbidden use.

Types

This section is empty.

Jump to

Keyboard shortcuts

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