(source *json.RawMessage)
| 1557 | } |
| 1558 | |
| 1559 | func cloneRawMessagePtr(source *json.RawMessage) *json.RawMessage { |
| 1560 | if source == nil { |
| 1561 | return nil |
| 1562 | } |
| 1563 | cloned := cloneRawMessage(*source) |
| 1564 | return &cloned |
| 1565 | } |
| 1566 | |
| 1567 | func cloneRawMessage(raw json.RawMessage) json.RawMessage { |
| 1568 | if len(raw) == 0 { |
no test coverage detected