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

Function Each

util/generic/map.go:137–141  ·  view source on GitHub ↗
(collection Map, cb Iterator)

Source from the content-addressed store, hash-verified

135}
136
137func Each(collection Map, cb Iterator) {
138 for _, key := range collection.Keys() {
139 cb(key, collection.Get(key))
140 }
141}
142
143func IsMappable(value interface{}) bool {
144 if value == nil {

Callers 6

expandPropertiesFunction · 0.92
checkForNullsFunction · 0.92
envVarOrEmptyMapFunction · 0.92
validateEnvVarsFunction · 0.92
ExceptMethod · 0.85
MergeFunction · 0.85

Calls 2

KeysMethod · 0.65
GetMethod · 0.65

Tested by

no test coverage detected