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

Function cloneStringMap

internal/workspace/clone.go:358–366  ·  view source on GitHub ↗
(src map[string]string)

Source from the content-addressed store, hash-verified

356}
357
358func cloneStringMap(src map[string]string) map[string]string {
359 if len(src) == 0 {
360 return nil
361 }
362
363 cloned := make(map[string]string, len(src))
364 maps.Copy(cloned, src)
365 return cloned
366}
367
368func cloneHookDecls(src []hookspkg.HookDecl) []hookspkg.HookDecl {
369 if len(src) == 0 {

Callers 6

cloneAutomationTriggersFunction · 0.70
cloneSandboxProfileFunction · 0.70
cloneSandboxResolvedFunction · 0.70
cloneMCPServersFunction · 0.70
cloneHookDeclFunction · 0.70

Calls

no outgoing calls

Tested by 1