Documentation ¶
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.
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)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 PrintableValue ¶
PrintableValue returns the, possibly indirected, interface value inside v that is best for a call to formatted printer.
Types ¶
This section is empty.