mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-02 11:51:30 -05:00
23 lines
451 B
Markdown
23 lines
451 B
Markdown
---
|
|
title: reflect.IsMap
|
|
description: Reports whether the value is a map.
|
|
categories: [functions]
|
|
keywords: []
|
|
menu:
|
|
docs:
|
|
parent: functions
|
|
function:
|
|
aliases: []
|
|
returnType: bool
|
|
signatures: [reflect.IsMap INPUT]
|
|
namespace: reflect
|
|
relatedFunctions:
|
|
- reflect.IsMap
|
|
- reflect.IsSlice
|
|
aliases: [/functions/reflect.ismap]
|
|
---
|
|
|
|
```go-html-template
|
|
{{ reflect.IsMap (dict "key" "value") }} → true
|
|
{{ reflect.IsMap "yo" }} → false
|
|
```
|