+2
-4
lines changedFilter options
+2
-4
lines changed Original file line number Diff line number Diff line change
@@ -27,6 +27,7 @@ package main
27
27
28
28
import (
29
29
"fmt"
30
+
"maps"
30
31
"net/url"
31
32
"sort"
32
33
"strings"
@@ -85,10 +86,7 @@ func (c *ConnInfo) Copy() *ConnInfo {
85
86
Kind: c.Kind,
86
87
Infos: make(map[string]string, len(c.Infos)),
87
88
}
88
-
89
-
for k, v := range c.Infos {
90
-
newC.Infos[k] = v
91
-
}
89
+
maps.Copy(newC.Infos, c.Infos)
92
90
93
91
return &newC
94
92
}
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4