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

Function cloneJSONMap

internal/extension/host_api.go:2778–2785  ·  view source on GitHub ↗
(source map[string]any)

Source from the content-addressed store, hash-verified

2776}
2777
2778func cloneJSONMap(source map[string]any) map[string]any {
2779 if len(source) == 0 {
2780 return nil
2781 }
2782 cloned := make(map[string]any, len(source))
2783 maps.Copy(cloned, source)
2784 return cloned
2785}
2786
2787func cloneHostAPIStringMap(source map[string]string) map[string]string {
2788 if len(source) == 0 {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected