Documentation ¶
Index ¶
- type Namespace
- func (*Namespace) Default(dflt interface{}, given ...interface{}) (interface{}, error)
- func (*Namespace) Eq(x, y interface{}) bool
- func (n *Namespace) Ge(a, b interface{}) bool
- func (n *Namespace) Gt(a, b interface{}) bool
- func (n *Namespace) Le(a, b interface{}) bool
- func (n *Namespace) Lt(a, b interface{}) bool
- func (n *Namespace) Ne(x, y interface{}) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Namespace ¶
type Namespace struct { }
Namespace provides template functions for the "compare" namespace.
func New ¶
func New() *Namespace
New returns a new instance of the compare-namespaced template functions.
func (*Namespace) Default ¶
Default checks whether a given value is set and returns a default value if it is not. "Set" in this context means non-zero for numeric types and times; non-zero length for strings, arrays, slices, and maps; any boolean or struct value; or non-nil for any other types.
Click to show internal directories.
Click to hide internal directories.