Created
June 1, 2017 11:38
-
-
Save mertenvg/b58aa7cca4f5756d50b8384a4988bab3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// MergeValues merges multiple url.Values into a single url.Values result | |
func MergeValues(vs ...url.Values) url.Values { | |
result := url.Values{} | |
for _, values := range vs { | |
for k, v := range values { | |
result[k] = v | |
} | |
} | |
return result | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment