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

Function cloneStringMap

internal/effectconfigraw/hooks.go:282–289  ·  view source on GitHub ↗
(source map[string]string)

Source from the content-addressed store, hash-verified

280 }
281 merged := make(map[string]etscore.Severity, len(target)+len(source))
282 maps.Copy(merged, target)
283 maps.Copy(merged, source)
284 return merged
285}
286
287func cloneIntPtr(source *int) *int {
288 if source == nil {
289 return nil
290 }
291 v := *source
292 return &v

Callers 2

mergeEffectOptionsFunction · 0.70
cloneEffectOptionsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected