hugo/docs/content/en/functions/reflect.IsSlice.md
2023-05-22 16:47:07 +02:00

18 lines
417 B
Markdown

---
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
```