Documentation ¶
Overview ¶
Package hreflect contains reflect helpers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func IsNumber ¶ added in v0.76.0
TODO(bep) replace the private versions in /tpl with these. IsNumber returns whether the given kind is a number.
func IsTruthful ¶
func IsTruthful(in interface{}) bool
IsTruthful returns whether in represents a truthful value. See IsTruthfulValue
func IsTruthfulValue ¶
IsTruthfulValue returns whether the given value has a meaningful truth value. This is based on template.IsTrue in Go's stdlib, but also considers IsZero and any interface value will be unwrapped before it's considered for truthfulness.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.