| Total Lines | 10 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 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 |