MCPcopy Create free account
hub / github.com/apache/doris-operator / NewSetString

Function NewSetString

pkg/common/utils/set/set.go:24–34  ·  view source on GitHub ↗
(strs ...string)

Source from the content-addressed store, hash-verified

22}
23
24func NewSetString(strs ...string) *SetString {
25 ss := &SetString{
26 m: make(map[string]struct{}),
27 }
28
29 for _, str := range strs {
30 ss.Add(str)
31 }
32
33 return ss
34}
35func (ss *SetString) Add(str string) {
36 ss.m[str] = struct{}{}
37}

Calls 1

AddMethod · 0.95

Tested by

no test coverage detected