-
-
Save ashkan90/8bb2ccd7f97eee733947d2cde42e08a4 to your computer and use it in GitHub Desktop.
Converting interface{} (comes from url.Values) to map
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
package main | |
import ( | |
"net/url" | |
) | |
// i should be url.Values. | |
func convToMap(i interface{}) url.Values { | |
return i.(url.Values) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment