MCPcopy Index your code
hub / github.com/docker/docker-agent / cloneStringMap

Function cloneStringMap

pkg/session/branch.go:333–338  ·  view source on GitHub ↗
(src map[string]string)

Source from the content-addressed store, hash-verified

331}
332
333func cloneStringMap(src map[string]string) map[string]string {
334 if len(src) == 0 {
335 return nil
336 }
337 return maps.Clone(src)
338}
339
340func cloneStringSlice(src []string) []string {
341 if src == nil {

Callers 4

CloneMethod · 0.85
copySessionMetadataFunction · 0.85
UpdateSessionMethod · 0.85
UpdateSessionMethod · 0.85

Calls 1

CloneMethod · 0.45

Tested by

no test coverage detected