MCPcopy Create free account
hub / github.com/compozy/agh / cloneRawMessagePtr

Function cloneRawMessagePtr

internal/extension/host_api_tasks.go:1559–1565  ·  view source on GitHub ↗
(source *json.RawMessage)

Source from the content-addressed store, hash-verified

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

Callers 1

taskPatchFromRequestFunction · 0.70

Calls 1

cloneRawMessageFunction · 0.70

Tested by

no test coverage detected