MCPcopy Index your code
hub / github.com/codeyourweb/irma / StringInSlice

Function StringInSlice

utils.go:35–42  ·  view source on GitHub ↗

StringInSlice check wether or not a string already is inside a specified slice

(a string, list []string)

Source from the content-addressed store, hash-verified

33
34// StringInSlice check wether or not a string already is inside a specified slice
35func 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
45func NotifyUser(title string, message string) {

Callers 4

FileAnalysisFunction · 0.85
MemoryAnalysisRoutineFunction · 0.85
ListProcessFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected