We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 782cbb4 commit 0462aadCopy full SHA for 0462aad
src/pkg/net/url/url.go
@@ -225,7 +225,8 @@ func escape(s string, mode encoding) string {
225
// slashes in the raw URL and which were %2f. This distinction is rarely important,
226
// but when it is a client must use other routines to parse the raw URL or construct
227
// the parsed URL. For example, an HTTP server can consult req.RequestURI, and
228
-// an HTTP client can use URL{Opaque: "/Go%2f"} instead of URL{Path: "/Go/"}.
+// an HTTP client can use URL{Host: "example.com", Opaque: "//example.com/Go%2f"}
229
+// instead of URL{Host: "example.com", Path: "/Go/"}.
230
type URL struct {
231
Scheme string
232
Opaque string // encoded opaque data
0 commit comments