(raw json.RawMessage)
| 4137 | } |
| 4138 | |
| 4139 | func cloneRawJSON(raw json.RawMessage) json.RawMessage { |
| 4140 | if len(raw) == 0 { |
| 4141 | return nil |
| 4142 | } |
| 4143 | cloned := make(json.RawMessage, len(raw)) |
| 4144 | copy(cloned, raw) |
| 4145 | return cloned |
| 4146 | } |
| 4147 | |
| 4148 | func sameRawJSON(left json.RawMessage, right json.RawMessage) bool { |
| 4149 | return bytes.Equal(normalizeRawJSON(left), normalizeRawJSON(right)) |
no outgoing calls