MCPcopy Create free account
hub / github.com/cortexproject/cortex / StringsMap

Function StringsMap

pkg/util/strings.go:21–27  ·  view source on GitHub ↗

StringsMap returns a map where keys are input values.

(values []string)

Source from the content-addressed store, hash-verified

19
20// StringsMap returns a map where keys are input values.
21func StringsMap(values []string) map[string]bool {
22 out := make(map[string]bool, len(values))
23 for _, v := range values {
24 out[v] = true
25 }
26 return out
27}
28
29// StringsClone returns a copy input s
30// see: https://github.com/golang/go/blob/master/src/strings/clone.go

Callers 1

scanUsersMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected