MCPcopy Index your code
hub / github.com/discourse/discourse-auth-proxy / NewStringSet

Function NewStringSet

string_set.go:9–14  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

7type StringSet []string
8
9func NewStringSet(s string) StringSet {
10 if len(s) == 0 {
11 return []string{}
12 }
13 return strings.Split(s, ",")
14}
15
16func (ss StringSet) Contains(needle string) bool {
17 for _, s := range ss {

Callers 7

NewTestConfigFunction · 0.85
TestForbiddenGroupFunction · 0.85
TestAllowedGroupFunction · 0.85
TestForbiddenAnonFunction · 0.85
TestAllowedAnonFunction · 0.85
ParseConfigFunction · 0.85
redirectIfNoCookieFunction · 0.85

Calls

no outgoing calls

Tested by 5

NewTestConfigFunction · 0.68
TestForbiddenGroupFunction · 0.68
TestAllowedGroupFunction · 0.68
TestForbiddenAnonFunction · 0.68
TestAllowedAnonFunction · 0.68