func hasElem(array interface{}, elem interface{}) bool {
	arrV := reflect.ValueOf(array)

	if arrV.Kind() == reflect.Slice {
		for i := 0; i < arrV.Len(); i++ {
			if arrV.Index(i).Interface() == elem {
				return true
			}
		}
	}

	return false
}
// if array has an element
if array has an element
// if array has an element
func hasElem(array interface{}, elem interface{}) bool {
	arrV := reflect.ValueOf(array)
	if arrV.Kind() == reflect.Slice {
		for i := 0; i < arrV.Len(); i++ {
			if arrV.Index(i).Interface() == elem {
				return true
			}
		}
	}
	return false
}
func hasElem ( array interface { } , elem interface { } ) bool { arrV := reflect . ValueOf ( array ) if arrV . Kind ( ) == reflect . Slice { for i := 0 ; i < arrV . Len ( ) ; i ++ { if arrV . Index ( i ) . Interface ( ) == elem { return true } } } return false }
if array has an element
if array has an element