mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
25 lines
514 B
Markdown
25 lines
514 B
Markdown
|
---
|
||
|
title: reflect.IsSlice
|
||
|
description: Reports if a value is a slice.
|
||
|
date: 2018-11-28
|
||
|
publishdate: 2018-11-28
|
||
|
lastmod: 2018-11-28
|
||
|
categories: [functions]
|
||
|
menu:
|
||
|
docs:
|
||
|
parent: "functions"
|
||
|
keywords: [reflect, reflection, kind]
|
||
|
signature: ["reflect.IsSlice INPUT"]
|
||
|
workson: []
|
||
|
hugoversion: "0.53"
|
||
|
relatedfuncs: [reflect.IsMap]
|
||
|
deprecated: false
|
||
|
---
|
||
|
|
||
|
`reflect.IsSlice` reports if `VALUE` is a slice. Returns a boolean.
|
||
|
|
||
|
```
|
||
|
{{ reflect.IsSlice (slice 1 2 3) }} → true
|
||
|
{{ reflect.IsSlice "yo" }} → false
|
||
|
```
|