{"modulePath":"code.cloudfoundry.org/cli-sapi","version":"v6.22.1+incompatible","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package generic\n\n## Functions\n\n```go\nfunc Contains(collection, item interface{}) bool\n```\n\n```go\nfunc Each(collection Map, cb Iterator)\n```\n\n```go\nfunc IsMappable(value interface{}) bool\n```\n\n```go\nfunc IsSliceable(value interface{}) bool\n```\n\n## Types\n\n```go\ntype ConcreteMap map[interface{}]interface{}\n```\n\n```go\nfunc (data *ConcreteMap) Count() int\n```\n\n```go\nfunc (data *ConcreteMap) Delete(key interface{})\n```\n\n```go\nfunc (data *ConcreteMap) Except(keys []interface{}) Map\n```\n\n```go\nfunc (data *ConcreteMap) Get(key interface{}) interface{}\n```\n\n```go\nfunc (data *ConcreteMap) Has(key interface{}) bool\n```\n\n```go\nfunc (data *ConcreteMap) IsEmpty() bool\n```\n\n```go\nfunc (data *ConcreteMap) IsNil(key interface{}) bool\n```\n\n```go\nfunc (data *ConcreteMap) Keys() (keys []interface{})\n```\n\n```go\nfunc (data *ConcreteMap) NotNil(key interface{}) bool\n```\n\n```go\nfunc (data *ConcreteMap) Set(key, value interface{})\n```\n\n```go\nfunc (data *ConcreteMap) String() string\n```\n\n```go\ntype Iterator func(key, val interface{})\n```\n\n```go\ntype Map interface {\n\tIsEmpty() bool\n\tCount() int\n\tKeys() []interface{}\n\tHas(key interface{}) bool\n\tExcept(keys []interface{}) Map\n\tIsNil(key interface{}) bool\n\tNotNil(key interface{}) bool\n\tGet(key interface{}) interface{}\n\tSet(key interface{}, value interface{})\n\tDelete(key interface{})\n\tString() string\n}\n```\n\n```go\nfunc DeepMerge(maps ...Map) Map\n```\n\n```go\nfunc Merge(collection, otherCollection Map) Map\n```\n\n```go\nfunc NewMap(data ...interface{}) Map\n```\n\n```go\nfunc Reduce(collections []Map, resultVal Map, cb Reducer) Map\n```\n\n```go\ntype Reducer func(key, val interface{}, reducedVal Map) Map\n```\n\n","path":"code.cloudfoundry.org/cli-sapi/utils/generic","name":"generic","synopsis":"","isRedistributable":true}
