From 131942c5ddc31b24f3d4d9a8f36af8b40d279301 Mon Sep 17 00:00:00 2001 From: ale8k Date: Mon, 6 Dec 2021 22:04:17 +0000 Subject: [PATCH] Remove print --- slice_searching/linear_search/linear_search.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/slice_searching/linear_search/linear_search.go b/slice_searching/linear_search/linear_search.go index 83e0ea7..97f2a5a 100644 --- a/slice_searching/linear_search/linear_search.go +++ b/slice_searching/linear_search/linear_search.go @@ -1,7 +1,6 @@ package linearsearch import ( - "fmt" "reflect" ) @@ -12,8 +11,6 @@ func PrimitiveSearch(param interface{}, slice interface{}) int { sliceKind := sliceType.Kind() sliceVal := reflect.ValueOf(slice) - fmt.Println(sliceType, sliceKind, sliceVal) - if sliceKind == reflect.Slice && sliceVal.Len() > 0 { for i := 0; i < sliceVal.Len(); i++ { match := reflect.DeepEqual(param, sliceVal.Index(i).Interface())