MCPcopy Create free account
hub / github.com/discourse/discourse-auth-proxy / Contains

Method Contains

string_set.go:16–23  ·  view source on GitHub ↗
(needle string)

Source from the content-addressed store, hash-verified

14}
15
16func (ss StringSet) Contains(needle string) bool {
17 for _, s := range ss {
18 if s == needle {
19 return true
20 }
21 }
22 return false
23}
24
25func (ss StringSet) ContainsAny(needles StringSet) bool {
26 for _, n := range needles {

Callers 1

ContainsAnyMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected