client-go: k8s.io/client-go/third_party/forked/golang/template Index | Files

package template

import "k8s.io/client-go/third_party/forked/golang/template"

This package is copied from Go library text/template. The original private functions indirect and printableValue are exported as public functions.

This package is copied from Go library text/template. The original private functions eq, ge, gt, le, lt, and ne are exported as public functions.

Index

Package Files

exec.go funcs.go

Variables

var Equal = eq
var Greater = gt
var GreaterEqual = ge
var Indirect = indirect
var Less = lt
var LessEqual = le
var NotEqual = ne
var PrintableValue = printableValue

func HTMLEscape Uses

func HTMLEscape(w io.Writer, b []byte)

HTMLEscape writes to w the escaped HTML equivalent of the plain text data b.

func HTMLEscapeString Uses

func HTMLEscapeString(s string) string

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

func HTMLEscaper Uses

func HTMLEscaper(args ...interface{}) string

HTMLEscaper returns the escaped HTML equivalent of the textual representation of its arguments.

func JSEscape Uses

func JSEscape(w io.Writer, b []byte)

JSEscape writes to w the escaped JavaScript equivalent of the plain text data b.

func JSEscapeString Uses

func JSEscapeString(s string) string

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

func JSEscaper Uses

func JSEscaper(args ...interface{}) string

JSEscaper returns the escaped JavaScript equivalent of the textual representation of its arguments.

func URLQueryEscaper Uses

func URLQueryEscaper(args ...interface{}) string

URLQueryEscaper returns the escaped value of the textual representation of its arguments in a form suitable for embedding in a URL query.

type FuncMap Uses

type FuncMap map[string]interface{}

FuncMap is the type of the map defining the mapping from names to functions. Each function must have either a single return value, or two return values of which the second has type error. In that case, if the second (error) return value evaluates to non-nil during execution, execution terminates and Execute returns that error.

Package template imports 9 packages (graph) and is imported by 2 packages. Updated 2018-03-22. Refresh now. Tools for package owners.