cgt / go-mwclient

A Go package for interacting with the MediaWiki API.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hide url.Values ugliness

cgt opened this issue · comments

url.Values is a map[string][]string, for which it is annoying to write literals because I never need the same parameter with different values in a request, so all the values have to be wrapped in braces. Replace url.Values with map[string]string (like in the Edit method) in the public UI.

Fixed!

I forked url.Values and put it in package params in go-mwclient/params.