hugo/docs/content/en/functions/reflect.IsMap.md
2023-05-22 16:47:07 +02:00

412 B

title description categories menu keywords signature relatedfuncs
reflect.IsMap Reports if a value is a map.
functions
docs
parent
functions
reflect
reflection
kind
reflect.IsMap INPUT
reflect.IsSlice

reflect.IsMap reports if VALUE is a map. Returns a boolean.

{{ reflect.IsMap (dict "key" "value") }} → true
{{ reflect.IsMap "yo" }} → false