mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
[skip ci] Add desc comments for SliceContain (#9217)
Signed-off-by: dragondriver <jiquan.long@zilliz.com>
This commit is contained in:
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…
x
Reference in New Issue
Block a user