diff options
Diffstat (limited to 'docs/content/en/functions/reflect.IsSlice.md')
-rw-r--r-- | docs/content/en/functions/reflect.IsSlice.md | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/docs/content/en/functions/reflect.IsSlice.md b/docs/content/en/functions/reflect.IsSlice.md new file mode 100644 index 000000000..38640918a --- /dev/null +++ b/docs/content/en/functions/reflect.IsSlice.md @@ -0,0 +1,24 @@ +--- +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 +``` |