(arr []string, toFind string)
| 39 | } |
| 40 | |
| 41 | func search(arr []string, toFind string) bool { |
| 42 | ind := sort.Search(len(arr), func(i int) bool { |
| 43 | return arr[i] >= toFind |
| 44 | }) |
| 45 | return ind < len(arr) && arr[ind] == toFind |
| 46 | } |
| 47 | |
| 48 | func validateCharset(allowedCharset, toCheck string) (string, bool) { |
| 49 | invalidRunes := "" |
no outgoing calls
no test coverage detected