HUGO
Menu
GitHub 90581 stars Mastodon

reflect.IsMap

Reports whether the given value is a map.
Syntax
reflect.IsMap INPUT
Returns
bool

Usage

The reflect.IsMap function reports whether the given value is a map.

Examples

{{ reflect.IsMap (dict "key" "value") }} → true
{{ reflect.IsMap (slice 1 2 3) }} → false
{{ reflect.IsMap "yo" }} → false

Checking the project’s custom parameters:

{{ reflect.IsMap site.Params }} → true