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

Function cloneStringMap

internal/pluginoptions/resolver.go:136–143  ·  view source on GitHub ↗
(input map[string]string)

Source from the content-addressed store, hash-verified

134}
135
136func cloneStringMap(input map[string]string) map[string]string {
137 if input == nil {
138 return nil
139 }
140 cloned := make(map[string]string, len(input))
141 maps.Copy(cloned, input)
142 return cloned
143}
144
145func cloneKeyPatterns(patterns []etscore.KeyPattern) []etscore.KeyPattern {
146 if len(patterns) == 0 {

Callers 1

cloneOptionsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected