aboutsummaryrefslogtreecommitdiff
path: root/doc/next/6-stdlib
diff options
context:
space:
mode:
authorEmmanuel T Odeke <emmanuel@orijtech.com>2026-02-18 17:03:37 -0500
committerGopher Robot <gobot@golang.org>2026-02-19 15:40:16 -0800
commit09c3cfbc208fbd3ee8a06885e7efa53cdd56be7a (patch)
tree998a773ef6bbc64302313c490fead8d88f191a85 /doc/next/6-stdlib
parent839cd82fa53ec481ffcd02e139b3d77c2724892e (diff)
downloadgo-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/6-stdlib')
-rw-r--r--doc/next/6-stdlib/99-minor/net/url/73450.md1
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.