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 ¶
- func Equal(arg1 interface{}, arg2 ...interface{}) (bool, error)
- func Greater(arg1, arg2 interface{}) (bool, error)
- func GreaterEqual(arg1, arg2 interface{}) (bool, error)
- func Indirect(v reflect.Value) (rv reflect.Value, isNil bool)
- func Less(arg1, arg2 interface{}) (bool, error)
- func LessEqual(arg1, arg2 interface{}) (bool, error)
- func NotEqual(arg1, arg2 interface{}) (bool, error)
- func PrintableValue(v reflect.Value) (interface{}, bool)
Functions ¶
func Equal ¶
Equal evaluates the comparison a == b || a == c || ...
func Greater ¶
Greater evaluates the comparison a > b.
func GreaterEqual ¶
GreaterEqual evaluates the comparison a >= b.
func Indirect ¶
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 ¶
Less evaluates the comparison a < b.
func LessEqual ¶
LessEqual evaluates the comparison <= b.
func NotEqual ¶
NotEqual evaluates the comparison a != b.
func PrintableValue ¶
PrintableValue returns the, possibly indirected, interface value inside v that is best for a call to formatted printer.
Source Files ¶
exec.go funcs.go
- Version
- v0.33.0 (latest)
- Published
- Apr 23, 2025
- Platform
- linux/amd64
- Imports
- 3 packages
- Last checked
- 2 hours ago –
Tools for package owners.