mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-01 16:19:14 -05:00
19 lines
378 B
Markdown
19 lines
378 B
Markdown
|
---
|
||
|
title: reflect.IsMap
|
||
|
description: Reports whether the given value is a map.
|
||
|
categories: []
|
||
|
keywords: []
|
||
|
action:
|
||
|
aliases: []
|
||
|
related:
|
||
|
- functions/reflect/IsSlice
|
||
|
returnType: bool
|
||
|
signatures: [reflect.IsMap INPUT]
|
||
|
aliases: [/functions/reflect.ismap]
|
||
|
---
|
||
|
|
||
|
```go-html-template
|
||
|
{{ reflect.IsMap (dict "key" "value") }} → true
|
||
|
{{ reflect.IsMap "yo" }} → false
|
||
|
```
|