diff options
| author | Emmanuel T Odeke <emmanuel@orijtech.com> | 2026-02-18 17:03:37 -0500 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2026-02-19 15:40:16 -0800 |
| commit | 09c3cfbc208fbd3ee8a06885e7efa53cdd56be7a (patch) | |
| tree | 998a773ef6bbc64302313c490fead8d88f191a85 /doc/next | |
| parent | 839cd82fa53ec481ffcd02e139b3d77c2724892e (diff) | |
| download | go-09c3cfbc208fbd3ee8a06885e7efa53cdd56be7a.tar.xz | |
net/url: add (*URL).Clone
This change adds URL.Clone which creates a deep copy
of the URL's fields including the .User and tests these.
In a separate CL I shall send Values.Clone too.
Updates #73450
Change-Id: Ifea4bfc4ddd0640247544ec111ec83bd9bbe9104
Reviewed-on: https://go-review.googlesource.com/c/go/+/746800
Reviewed-by: Nicholas Husin <husin@google.com>
Auto-Submit: Emmanuel Odeke <emmanuel@orijtech.com>
Reviewed-by: Damien Neil <dneil@google.com>
Reviewed-by: Nicholas Husin <nsh@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Damien Neil <dneil@google.com>
Diffstat (limited to 'doc/next')
| -rw-r--r-- | doc/next/6-stdlib/99-minor/net/url/73450.md | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/next/6-stdlib/99-minor/net/url/73450.md b/doc/next/6-stdlib/99-minor/net/url/73450.md new file mode 100644 index 0000000000..848dc90510 --- /dev/null +++ b/doc/next/6-stdlib/99-minor/net/url/73450.md @@ -0,0 +1 @@ +The new [URL.Clone] method creates a deep copy of a URL. |
