func randomURL(proto string) *url.URL {
	var domain, tld string = randomString(5, 12), randomString(2, 3)
	var sfx string

	var folders int = rand.Intn(5)
	var i int
	for i = 0; i < folders; i++ {
		sfx += randomString(2, 16)
		if i < folders-1 {
			sfx += "/"
		} else if randomBool() {
			sfx += "." + randomString(2, 4)
		}
	}

	var myurl *url.URL
	myurl, _ = url.Parse(proto + "://" + domain + "." + tld + "/" + sfx)
	return myurl
}
// proto should be one of http, https, ...
// might return nil
proto should be one of http, https,
might return nil
// proto should be one of http https ... // might return nil
func randomURL(proto string) *url.URL {
	var domain, tld string = randomString(5, 12), randomString(2, 3)
	var sfx string
	var folders int = rand.Intn(5)
	var i int
	for i = 0; i < folders; i++ {
		sfx += randomString(2, 16)
		if i < folders-1 {
			sfx += "/"
		} else if randomBool() {
			sfx += "." + randomString(2, 4)
		}
	}
	var myurl *url.URL
	myurl, _ = url.Parse(proto + "://" + domain + "." + tld + "/" + sfx)
	return myurl
}
func randomURL ( proto string ) * url . URL { var domain , tld string = randomString ( 5 , 12 ) , randomString ( 2 , 3 ) var sfx string var folders int = rand . Intn ( 5 ) var i int for i = 0 ; i < folders ; i ++ { sfx += randomString ( 2 , 16 ) if i < folders - 1 { sfx += " " } else if randomBool ( ) { sfx += " " + randomString ( 2 , 4 ) } } var myurl * url . URL myurl , _ = url . Parse ( proto + " " + domain + " " + tld + " " + sfx ) return myurl }
proto should be one of http, https,
might return nil
proto should be one of http https might return nil