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" }} → falseChecking the project’s custom parameters:
{{ reflect.IsMap site.Params }} → trueLast updated:
November 22, 2026
:
content: Apply style guide to reflect functions (94d3db6cf)
Improve this page