mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-03 05:03:47 -05:00
18 lines
417 B
Markdown
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
|
|
```
|