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

Function cloneRawMessage

internal/api/core/network.go:861–866  ·  view source on GitHub ↗
(raw json.RawMessage)

Source from the content-addressed store, hash-verified

859}
860
861func cloneRawMessage(raw json.RawMessage) json.RawMessage {
862 if len(raw) == 0 {
863 return nil
864 }
865 return append(json.RawMessage(nil), raw...)
866}
867
868func cloneRawMap[T ~map[string]json.RawMessage](source T) map[string]json.RawMessage {
869 if len(source) == 0 {

Calls 1

appendFunction · 0.85

Tested by

no test coverage detected