MCPcopy Index your code
hub / github.com/cloudfoundry/cli / Except

Method Except

util/generic/map.go:71–79  ·  view source on GitHub ↗
(keys []interface{})

Source from the content-addressed store, hash-verified

69}
70
71func (data *ConcreteMap) Except(keys []interface{}) Map {
72 otherMap := NewMap()
73 Each(data, func(key, value interface{}) {
74 if !Contains(keys, key) {
75 otherMap.Set(key, value)
76 }
77 })
78 return otherMap
79}
80
81func (data *ConcreteMap) Get(key interface{}) interface{} {
82 return (*data)[key]

Callers

nothing calls this directly

Calls 4

SetMethod · 0.95
NewMapFunction · 0.85
EachFunction · 0.85
ContainsFunction · 0.85

Tested by

no test coverage detected