mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-22 21:42:50 +02:00
Merge commit 'f96384a3b596f9bc0a3a035970b09b2c601f0ccb'
This commit is contained in:
@@ -1,24 +1,18 @@
|
||||
---
|
||||
title: reflect.IsMap
|
||||
description: Reports if a value is a map.
|
||||
date: 2018-11-28
|
||||
publishdate: 2018-11-28
|
||||
lastmod: 2018-11-28
|
||||
categories: [functions]
|
||||
menu:
|
||||
docs:
|
||||
parent: "functions"
|
||||
parent: functions
|
||||
keywords: [reflect, reflection, kind]
|
||||
signature: ["reflect.IsMap INPUT"]
|
||||
workson: []
|
||||
hugoversion: "v0.53"
|
||||
relatedfuncs: [reflect.IsSlice]
|
||||
deprecated: false
|
||||
---
|
||||
|
||||
`reflect.IsMap` reports if `VALUE` is a map. Returns a boolean.
|
||||
|
||||
```
|
||||
```go-html-template
|
||||
{{ reflect.IsMap (dict "key" "value") }} → true
|
||||
{{ reflect.IsMap "yo" }} → false
|
||||
```
|
||||
|
Reference in New Issue
Block a user