reflect.IsMap

将以下英文翻译为中文:

reflect.IsMap

https://gohugo.io/functions/reflect.ismap/

Reports if a value is a map.

语法

reflect.IsMap INPUT

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

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

另请参阅