Commit 1e69aefb authored by Kenny Grant's avatar Kenny Grant Committed by Brad Fitzpatrick

net/url: document that Query returns only valid values

Fixes #19110

Change-Id: I291fa4ec3c61145162acd019e3f0e5dd3d7c97e9
Reviewed-on: https://go-review.googlesource.com/37194Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
parent 6cfc3b25
......@@ -974,6 +974,8 @@ func (u *URL) ResolveReference(ref *URL) *URL {
}
// Query parses RawQuery and returns the corresponding values.
// It silently discards malformed value pairs.
// To check errors use ParseQuery.
func (u *URL) Query() Values {
v, _ := ParseQuery(u.RawQuery)
return v
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment