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

package template

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

Index

Package Files

manual.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 3 packages (graph). Updated 2019-08-17. Refresh now. Tools for package owners.