You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

13 lines
205 B

package util
import "net/url"
func MkUrl(host, path string, args url.Values) string {
u := url.URL{
Scheme: "http",
Host: host,
Path: path,
}
u.RawQuery = args.Encode()
return u.String()
}