(key string)
| 118 | } |
| 119 | |
| 120 | func (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. |
| 130 | func (m StringMap) GetInt(key string) (int64, error) { |