...

Package template

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

Overview ▾

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.

func Equal

func Equal(arg1 interface{}, arg2 ...interface{}) (bool, error)

Equal evaluates the comparison a == b || a == c || ...

func Greater

func Greater(arg1, arg2 interface{}) (bool, error)

Greater evaluates the comparison a > b.

func GreaterEqual

func GreaterEqual(arg1, arg2 interface{}) (bool, error)

GreaterEqual evaluates the comparison a >= b.

func Indirect

func Indirect(v reflect.Value) (rv reflect.Value, isNil bool)

Indirect returns the item at the end of indirection, and a bool to indicate if it's nil. We indirect through pointers and empty interfaces (only) because non-empty interfaces have methods we might need.

func Less

func Less(arg1, arg2 interface{}) (bool, error)

Less evaluates the comparison a < b.

func LessEqual

func LessEqual(arg1, arg2 interface{}) (bool, error)

LessEqual evaluates the comparison <= b.

func NotEqual

func NotEqual(arg1, arg2 interface{}) (bool, error)

NotEqual evaluates the comparison a != b.

func PrintableValue

func PrintableValue(v reflect.Value) (interface{}, bool)

PrintableValue returns the, possibly indirected, interface value inside v that is best for a call to formatted printer.