MCPcopy
hub / github.com/cortexlabs/cortex / FlattenAllStrValuesAsSet

Function FlattenAllStrValuesAsSet

pkg/lib/configreader/interface.go:186–197  ·  view source on GitHub ↗
(obj interface{})

Source from the content-addressed store, hash-verified

184}
185
186func FlattenAllStrValuesAsSet(obj interface{}) (strset.Set, error) {
187 strs, err := FlattenAllStrValues(obj)
188 if err != nil {
189 return nil, err
190 }
191
192 set := strset.New()
193 for _, str := range strs {
194 set.Add(str)
195 }
196 return set, nil
197}

Callers

nothing calls this directly

Calls 3

NewFunction · 0.92
FlattenAllStrValuesFunction · 0.85
AddMethod · 0.45

Tested by

no test coverage detected