reflect.IsSlice.md (514B)
1 --- 2 title: reflect.IsSlice 3 description: Reports if a value is a slice. 4 date: 2018-11-28 5 publishdate: 2018-11-28 6 lastmod: 2018-11-28 7 categories: [functions] 8 menu: 9 docs: 10 parent: "functions" 11 keywords: [reflect, reflection, kind] 12 signature: ["reflect.IsSlice INPUT"] 13 workson: [] 14 hugoversion: "0.53" 15 relatedfuncs: [reflect.IsMap] 16 deprecated: false 17 --- 18 19 `reflect.IsSlice` reports if `VALUE` is a slice. Returns a boolean. 20 21 ``` 22 {{ reflect.IsSlice (slice 1 2 3) }} → true 23 {{ reflect.IsSlice "yo" }} → false 24 ```