reflect.IsSlice

将以下英文翻译为中文:

reflect.IsSlice

https://gohugo.io/functions/reflect.isslice/

Reports if a value is a slice.

语法

reflect.IsSlice INPUT

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

1
2
{{ reflect.IsSlice (slice 1 2 3) }} → true
{{ reflect.IsSlice "yo" }} → false

另请参阅