MCPcopy Create free account
hub / github.com/imroc/req / cloneUrlValues

Function cloneUrlValues

req.go:96–107  ·  view source on GitHub ↗
(v url.Values)

Source from the content-addressed store, hash-verified

94}
95
96func cloneUrlValues(v url.Values) url.Values {
97 if v == nil {
98 return nil
99 }
100 vv := make(url.Values)
101 for key, values := range v {
102 for _, value := range values {
103 vv.Add(key, value)
104 }
105 }
106 return vv
107}
108
109func cloneMap(h map[string]string) map[string]string {
110 if h == nil {

Callers 1

CloneMethod · 0.85

Calls 1

AddMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…