[skip ci] Add desc comments for SliceContain (#9217)

Signed-off-by: dragondriver <jiquan.long@zilliz.com>
pull/9220/head
dragondriver 2021-10-04 19:26:18 +08:00 committed by GitHub
parent 3b76c7ffe9
commit fb22186c72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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 {