MCPcopy Create free account
hub / github.com/GoEdgeLab/EdgeNode / Copy

Function Copy

internal/utils/jsonutils/map.go:37–44  ·  view source on GitHub ↗
(destPtr any, srcPtr any)

Source from the content-addressed store, hash-verified

35}
36
37func Copy(destPtr any, srcPtr any) error {
38 data, err := json.Marshal(srcPtr)
39 if err != nil {
40 return err
41 }
42 err = json.Unmarshal(data, destPtr)
43 return err
44}

Callers 1

onReloadMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected