import "github.com/gohugoio/hugo/common/hreflect"
Package hreflect contains reflect helpers.
IsFloat returns whether the given kind is a float.
IsInt returns whether the given kind is an int.
TODO(bep) replace the private versions in /tpl with these. IsInt returns whether the given kind is a number.
IsTruthful returns whether in represents a truthful value. See 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.
IsUint returns whether the given kind is an uint.
Package hreflect imports 2 packages (graph) and is imported by 26 packages. Updated 2020-12-12. Refresh now. Tools for package owners.