SliceContains returns true if terms contains q, or false otherwise.
(terms []string, q string)
| 41 | |
| 42 | // SliceContains returns true if terms contains q, or false otherwise. |
| 43 | func SliceContains(terms []string, q string) bool { |
| 44 | for _, term := range terms { |
| 45 | if q == term { |
| 46 | return true |
| 47 | } |
| 48 | } |
| 49 | |
| 50 | return false |
| 51 | } |
no outgoing calls
searching dependent graphs…