mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-14 20:37:55 -05:00
c84f506f8e
Add a reflect namespace that offers a two boolean functions for testing if a value is a map or slice. Fixes #4081
520 B
520 B
title | description | godocref | date | publishdate | lastmod | categories | menu | keywords | signature | workson | hugoversion | relatedfuncs | deprecated | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
reflect.IsMap | Reports if a value is a map. | 2018-11-28 | 2018-11-28 | 2018-11-28 |
|
|
|
|
v0.53 |
|
false |
reflect.IsMap
reports if VALUE
is a map. Returns a boolean.
{{ reflect.IsMap (dict "key" "value") }} → true
{{ reflect.IsMap "yo" }} → false