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

Method GetBool

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

Source from the content-addressed store, hash-verified

118}
119
120func (m StringMap) GetBool(key string) (bool, error) {
121 val, err := m.Get(key)
122 if err != nil {
123 return false, err
124 }
125
126 return AssertType[bool](val)
127}
128
129// GetInt extracts an integer from the map.
130func (m StringMap) GetInt(key string) (int64, error) {

Callers 4

TestStringMapFunction · 0.95
GetPostAuthInfoMethod · 0.45
internalQueryBoolMethod · 0.45

Calls 1

GetMethod · 0.95

Tested by 2

TestStringMapFunction · 0.76