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

Function IsMappable

util/generic/map.go:143–153  ·  view source on GitHub ↗
(value interface{})

Source from the content-addressed store, hash-verified

141}
142
143func IsMappable(value interface{}) bool {
144 if value == nil {
145 return false
146 }
147 switch value.(type) {
148 case Map:
149 return true
150 default:
151 return reflect.TypeOf(value).Kind() == reflect.Map
152 }
153}

Callers 4

parseManifestFunction · 0.92
getAppMapsMethod · 0.92
map_test.goFile · 0.85
mergeReducerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected