StringInSlice check wether or not a string already is inside a specified slice
(a string, list []string)
| 33 | |
| 34 | // StringInSlice check wether or not a string already is inside a specified slice |
| 35 | func StringInSlice(a string, list []string) bool { |
| 36 | for _, b := range list { |
| 37 | if b == a { |
| 38 | return true |
| 39 | } |
| 40 | } |
| 41 | return false |
| 42 | } |
| 43 | |
| 44 | // NotifyUser use Windows notification to instant alert |
| 45 | func NotifyUser(title string, message string) { |
no outgoing calls
no test coverage detected