MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / SetFromArray

Function SetFromArray

base/set.go:23–29  ·  view source on GitHub ↗

Creates a new Set from an array of strings.

(names []string)

Source from the content-addressed store, hash-verified

21
22// Creates a new Set from an array of strings.
23func SetFromArray(names []string) Set {
24 result := make(Set, len(names))
25 for _, name := range names {
26 result[name] = present{}
27 }
28 return result
29}
30
31// Creates a new Set from zero or more inline string arguments.
32func SetOf(names ...string) Set {

Callers 15

SetExplicitChannelsMethod · 0.92
TestCanSeeChannelSinceFunction · 0.92
getJWTClaimAsSetFunction · 0.92
TestJWTRolesChannelsFunction · 0.92
UnmarshalJSONMethod · 0.92
SetFromArrayFunction · 0.92
AsSetMethod · 0.92
TestEqualsWithEqualSetFunction · 0.92
TestEqualsWithUnequalSetFunction · 0.92

Calls

no outgoing calls

Tested by 15

TestCanSeeChannelSinceFunction · 0.74
TestJWTRolesChannelsFunction · 0.74
TestEqualsWithEqualSetFunction · 0.74
TestEqualsWithUnequalSetFunction · 0.74
getUserPayloadMethod · 0.74
getPayloadMethod · 0.74
TestAdminAndJWTChannelsFunction · 0.74
TestSyncFuncDryRunFunction · 0.74