Hi Axel,
You write "in general, there are multiple valid escaped forms of any URL". This would still allow for all escaped forms to result in the same URL object when parsed.
What I hoped for is a way to go URL->string->URL and get back the same result. I understand that this is how is works for every URL. Now I wonder, if I do
url1 := ...
s2 := url1.String()
url2, _ := url1.Parse(s2)
s3 := url2.String()
url3,_ := url2.Parse(s3)
will I then have reflect.DeepEqual(url2, url3)? If this works, then I could use the url1->url2 step to "normalize" my URL, and url2 would have the property I want. Or is there an easier way to obtain this "normalized" version?
All the best,
Jochen