MCPcopy Create free account
hub / github.com/Effect-TS/tsgo / cloneKeyPatterns

Function cloneKeyPatterns

internal/effectconfigraw/hooks.go:259–272  ·  view source on GitHub ↗
(source []etscore.KeyPattern)

Source from the content-addressed store, hash-verified

257 return nil
258 }
259 cloned := cloneKeyPatterns(*source)
260 return &cloned
261}
262
263func cloneStringMap(source map[string]string) map[string]string {
264 if len(source) == 0 {
265 return nil
266 }
267 cloned := make(map[string]string, len(source))
268 maps.Copy(cloned, source)
269 return cloned
270}
271
272func mergeSeverityMaps(target, source map[string]etscore.Severity) map[string]etscore.Severity {
273 if source == nil {
274 if target == nil {
275 return nil

Callers 3

mergeEffectOptionsFunction · 0.70
cloneEffectOptionsFunction · 0.70
cloneKeyPatternsPtrFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected