package template
import "cuelang.org/go/pkg/text/template"
Index ¶
- func Execute(templ string, data cue.Value) (string, error)
- func HTMLEscape(s string) string
- func JSEscape(s string) string
Functions ¶
func Execute ¶
Execute executes a Go-style template.
func HTMLEscape ¶
HTMLEscape returns the escaped HTML equivalent of the plain text data s.
func JSEscape ¶
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.