Contains check if a slice contains a given string
(s []string, e string)
| 32 | |
| 33 | // Contains check if a slice contains a given string |
| 34 | func Contains(s []string, e string) bool { |
| 35 | for _, a := range s { |
| 36 | if a == e { |
| 37 | return true |
| 38 | } |
| 39 | } |
| 40 | return false |
| 41 | } |
| 42 | |
| 43 | // Differences return the elements in `a` that aren't in `b` |
| 44 | func Differences(a, b []string) []string { |
no outgoing calls