MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / cloneStringSliceMap

Function cloneStringSliceMap

sdk/pluginhost/host.go:276–285  ·  view source on GitHub ↗
(in map[string][]string)

Source from the content-addressed store, hash-verified

274}
275
276func cloneStringSliceMap(in map[string][]string) map[string][]string {
277 if len(in) == 0 {
278 return nil
279 }
280 out := make(map[string][]string, len(in))
281 for key, values := range in {
282 out[key] = cloneStringSlice(values)
283 }
284 return out
285}
286
287func deepCopyYAMLNode(node *yaml.Node) *yaml.Node {
288 if node == nil {

Callers 1

Calls 1

cloneStringSliceFunction · 0.70

Tested by

no test coverage detected