hugo/docs/content/en/functions/reflect.IsSlice.md

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
functions
docs
parent
functions
reflect
reflection
kind
reflect.IsSlice INPUT
0.53
reflect.IsMap
false

reflect.IsSlice reports if VALUE is a slice. Returns a boolean.

{{ reflect.IsSlice (slice 1 2 3) }} → true
{{ reflect.IsSlice "yo" }} → false