(path string, value any)
| 254 | } |
| 255 | |
| 256 | func (p RequestPayload) set(path string, value any) (RequestPayload, error) { |
| 257 | updated, err := sjson.SetBytes(p, path, value) |
| 258 | if err != nil { |
| 259 | return p, xerrors.Errorf("failed to set value at path %s: %w", path, err) |
| 260 | } |
| 261 | return updated, nil |
| 262 | } |
no test coverage detected