github.com/mook-as/cf-cli@v7.0.0-beta.28.0.20200120190804-b91c115fae48+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  }