Passed
Pull Request — master (#66)
by Hayrullah
56s
created

includes.go   A

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 4
dl 0
loc 10
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A gotil.Includes 0 2 1
1
package gotil
2
3
import "github.com/gotilty/gotil/internal"
4
5
// It checks whether the given value exists in the given parameter.
6
// 		data := []float64{5, 10.5, 10, 20, 10.75, 100, 4.23, 5.15, 5.99, 100.0001}
7
// 		result, _ := Includes(data, "gotil")
8
// 		// Output: false
9
func Includes(a interface{}, val interface{}) (bool, error) {
10
	return internal.Includes(a, val)
11
}
12