MCPcopy
hub / github.com/wavetermdev/waveterm / GetMap

Method GetMap

pkg/waveobj/metamap.go:102–109  ·  view source on GitHub ↗
(key string)

Source from the content-addressed store, hash-verified

100}
101
102func (m MetaMapType) GetMap(key string) MetaMapType {
103 if v, ok := m[key]; ok {
104 if mval, ok := v.(map[string]any); ok {
105 return MetaMapType(mval)
106 }
107 }
108 return nil
109}
110
111func (m MetaMapType) GetArray(key string) []any {
112 if v, ok := m[key]; ok {

Callers 5

GetStringMapMethod · 0.95
runTsunamiAppBinaryFunction · 0.80
GetMapGenFunction · 0.80
GetMappableFunction · 0.80

Calls 1

MetaMapTypeTypeAlias · 0.85

Tested by

no test coverage detected