package hreflect
import "github.com/gohugoio/hugo/common/hreflect"
Package hreflect contains reflect helpers.
Index ¶
Functions ¶
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.
Source Files ¶
- Version
- v0.56.3
- Published
- Jul 31, 2019
- Platform
- darwin/amd64
- Imports
- 2 packages
- Last checked
- 51 minutes ago –
Tools for package owners.