mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-03 05:23:55 -05:00
18 lines
412 B
Markdown
18 lines
412 B
Markdown
---
|
|
title: reflect.IsMap
|
|
description: Reports if a value is a map.
|
|
categories: [functions]
|
|
menu:
|
|
docs:
|
|
parent: functions
|
|
keywords: [reflect, reflection, kind]
|
|
signature: ["reflect.IsMap INPUT"]
|
|
relatedfuncs: [reflect.IsSlice]
|
|
---
|
|
|
|
`reflect.IsMap` reports if `VALUE` is a map. Returns a boolean.
|
|
|
|
```go-html-template
|
|
{{ reflect.IsMap (dict "key" "value") }} → true
|
|
{{ reflect.IsMap "yo" }} → false
|
|
```
|