Warn! Text encoding for urls has not been implemented.
package main
import "fmt"
type Parrams struct {
Query string `url:"q"`
Count int `url:"count"`
Scope []string `url:"scope" separator:"comma"`
}
func main() {
params := Params {
Query: "project",
Count: 1,
Scope: []string{ "projects", "files" },
}
qs := QueryString(params)
fmt.Println(qs) // => ?q=project&count=1&scope=projects,files
}