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

Method GetString

pkg/waveobj/metamap.go:12–19  ·  view source on GitHub ↗
(key string, def string)

Source from the content-addressed store, hash-verified

10var MetaMap_DeleteSentinel = uuid.NewString()
11
12func (m MetaMapType) GetString(key string, def string) string {
13 if v, ok := m[key]; ok {
14 if s, ok := v.(string); ok {
15 return s
16 }
17 }
18 return def
19}
20
21func (m MetaMapType) HasKey(key string) bool {
22 _, ok := m[key]

Callers 15

MakePlotDataFunction · 0.80
SavePlotDataFunction · 0.80
termCtxWithLogBlockIdFunction · 0.80
resolveViewFunction · 0.80
updateActivityTEventFunction · 0.80
updateWshRunTEventFunction · 0.80
DBResolveEasyOIDFunction · 0.80
DBFindTabForBlockIdFunction · 0.80
DBFindWorkspaceForTabIdFunction · 0.80
IsBlockTermDurableFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected