(key string)
| 74 | } |
| 75 | |
| 76 | func (v *Value) MapKeyExists(key string) (bool, error) { |
| 77 | _, err := v.GetMapKey(key) |
| 78 | if err != nil && !errors.As(err, &MapKeyNotFound{}) { |
| 79 | return false, err |
| 80 | } |
| 81 | return err == nil, nil |
| 82 | } |
| 83 | |
| 84 | // GetMapKey returns the value at the specified key in the map. |
| 85 | func (v *Value) GetMapKey(key string) (*Value, error) { |