Skip to content

Instantly share code, notes, and snippets.

@ashkan90
Created August 12, 2019 10:51
Show Gist options
  • Save ashkan90/8bb2ccd7f97eee733947d2cde42e08a4 to your computer and use it in GitHub Desktop.
Save ashkan90/8bb2ccd7f97eee733947d2cde42e08a4 to your computer and use it in GitHub Desktop.
Converting interface{} (comes from url.Values) to map
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