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
524 B
524 B
title | description | godocref | date | publishdate | lastmod | categories | menu | keywords | signature | workson | hugoversion | relatedfuncs | deprecated | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
reflect.IsSlice | Reports if a value is a slice. | 2018-11-28 | 2018-11-28 | 2018-11-28 |
|
|
|
|
0.53 |
|
false |
reflect.IsSlice
reports if VALUE
is a slice. Returns a boolean.
{{ reflect.IsSlice (slice 1 2 3) }} → true
{{ reflect.IsSlice "yo" }} → false