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.4.1-beta.1
Published
Dec 1, 2021
Platform
linux/amd64
Imports
5 packages
Last checked
17 minutes ago

Tools for package owners.