gocuelang.org/go/pkg/text/template Index | Files

package template

import "cuelang.org/go/pkg/text/template"

Index

Functions

func Execute

func Execute(templ string, data cue.Value) (string, error)

Execute executes a Go-style template.

func HTMLEscape

func HTMLEscape(s string) string

HTMLEscape returns the escaped HTML equivalent of the plain text data s.

func JSEscape

func JSEscape(s string) string

JSEscape returns the escaped JavaScript equivalent of the plain text data s.

Source Files

manual.go pkg.go template.go

Version
v0.12.0 (latest)
Published
Jan 30, 2025
Platform
linux/amd64
Imports
5 packages
Last checked
8 hours ago

Tools for package owners.