aboutsummaryrefslogtreecommitdiffhomepage
path: root/docs/content/en/functions/reflect.IsSlice.md
blob: 0a29d8f3e2204213ce26e5c9367800b25f0ffdfd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
---
title: reflect.IsSlice
description: Reports if a value is a slice.
categories: [functions]
menu:
  docs:
    parent: functions
keywords: [reflect, reflection, kind]
signature: ["reflect.IsSlice INPUT"]
relatedfuncs: [reflect.IsMap]
---

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

```go-html-template
{{ reflect.IsSlice (slice 1 2 3) }} → true
{{ reflect.IsSlice "yo" }} → false
```