Mapper for net/url query values in Go.
import (
"net/url"
"github.com/lukasdietrich/querymapper"
)
type MyStruct struct {
SomeField int `query:"some-field"`
}
func doSomething(query url.Values) (MyStruct, error) {
val s MyStruct
return s, querymapper.MapQuery(query, &s)
}