]> Cypherpunks repositories - gostls13.git/commit
net/url: improve URL docs
authorMateusz Poliwczak <mpoliwczak34@gmail.com>
Wed, 24 Sep 2025 14:40:55 +0000 (16:40 +0200)
committerGopher Robot <gobot@golang.org>
Fri, 3 Oct 2025 20:51:19 +0000 (13:51 -0700)
commit2a71af11fc7e45903be9ab84e59c668bb051f528
tree23bb175c5c061006cc5e39256933e7bd425f5581
parentee5369b003b17b34aa6417cf8c9b702f1cd76da1
net/url: improve URL docs

The Raw fields are confusing and easy to use by mistake. Adds more
context in comments to these fields.

Also the current docs (and the names of these fields) of these
boolean fields are not obvious that parser might produce them,
so clarify that

Change-Id: I6a6a69644834c3ccbf657147f771930b6875f721
Reviewed-on: https://go-review.googlesource.com/c/go/+/706515
Reviewed-by: Florian Lehner <lehner.florian86@gmail.com>
Reviewed-by: Sean Liao <sean@liao.dev>
Reviewed-by: Damien Neil <dneil@google.com>
Reviewed-by: Carlos Amedee <carlos@golang.org>
Auto-Submit: Damien Neil <dneil@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/net/url/url.go