()
| 27 | } |
| 28 | |
| 29 | func (v *Value) dencodingMapValue() (*orderedmap.Map, error) { |
| 30 | if v.isDencodingMap() { |
| 31 | m, err := v.UnpackUntilType(reflect.TypeFor[*orderedmap.Map]()) |
| 32 | if err != nil { |
| 33 | return nil, fmt.Errorf("error getting map: %w", err) |
| 34 | } |
| 35 | return m.value.Interface().(*orderedmap.Map), nil |
| 36 | } |
| 37 | return nil, fmt.Errorf("value is not a dencoding map") |
| 38 | } |
| 39 | |
| 40 | // SetMapKey sets the value at the specified key in the map. |
| 41 | func (v *Value) SetMapKey(key string, value *Value) error { |
no test coverage detected