github.com/sleungcy-sap/cli@v7.1.0+incompatible/util/generic/slice.go (about) 1 package generic 2 3 import "reflect" 4 5 func IsSliceable(value interface{}) bool { 6 if value == nil { 7 return false 8 } 9 return reflect.TypeOf(value).Kind() == reflect.Slice 10 }