MCPcopy
hub / github.com/tinode/chat / copyMap

Function copyMap

server/utils.go:880–884  ·  view source on GitHub ↗

Shallow copy of a map

(src map[string]any)

Source from the content-addressed store, hash-verified

878
879// Shallow copy of a map
880func copyMap(src map[string]any) map[string]any {
881 dst := make(map[string]any, len(src))
882 maps.Copy(dst, src)
883 return dst
884}
885
886// netListener creates net.Listener for tcp and unix domains:
887// if addr is in the form "unix:/run/tinode.sock" it's a unix socket, otherwise TCP host:port.

Callers 1

replySetAuxMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…