Shallow copy of a map
(src map[string]any)
| 878 | |
| 879 | // Shallow copy of a map |
| 880 | func 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. |
no outgoing calls
no test coverage detected
searching dependent graphs…