MCPcopy Create free account
hub / github.com/amp-labs/connectors / GetString

Method GetString

common/stringMap.go:111–118  ·  view source on GitHub ↗
(key string)

Source from the content-addressed store, hash-verified

109}
110
111func (m StringMap) GetString(key string) (string, error) {
112 val, err := m.Get(key)
113 if err != nil {
114 return "", err
115 }
116
117 return AssertType[string](val)
118}
119
120func (m StringMap) GetBool(key string) (bool, error) {
121 val, err := m.Get(key)

Callers 15

TestStringMapFunction · 0.95
parseIdFromValueMapFunction · 0.45
parseFieldsFromValueMapFunction · 0.45
RawEventNameMethod · 0.45
ObjectNameMethod · 0.45
RawEventNameMethod · 0.45
EventTimeStampNanoMethod · 0.45
EventTimeStampNanoMethod · 0.45
EventTypeMethod · 0.45
ObjectNameMethod · 0.45
RawEventNameMethod · 0.45
RawEventNameMethod · 0.45

Calls 1

GetMethod · 0.95