go: cuelang.org/go/pkg/text/template Index | Files

package template

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


Package Files

manual.go pkg.go template.go

func Execute Uses

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

Execute executes a Go-style template.

func HTMLEscape Uses

func HTMLEscape(s string) string

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

func JSEscape Uses

func JSEscape(s string) string

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

Package template imports 5 packages (graph) and is imported by 2 packages. Updated 2021-01-23. Refresh now. Tools for package owners.