mirror of https://github.com/milvus-io/milvus.git
[skip ci] Add desc comments for SliceContain (#9217)
Signed-off-by: dragondriver <jiquan.long@zilliz.com>pull/9220/head
parent
3b76c7ffe9
commit
fb22186c72
|
@ -13,6 +13,7 @@ package funcutil
|
|||
|
||||
import "reflect"
|
||||
|
||||
// SliceContain returns true if slice s contains item.
|
||||
func SliceContain(s interface{}, item interface{}) bool {
|
||||
ss := reflect.ValueOf(s)
|
||||
if ss.Kind() != reflect.Slice {
|
||||
|
|
Loading…
Reference in New Issue