aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorMateusz Poliwczak <mpoliwczak34@gmail.com>2024-04-13 07:01:44 +0000
committerGopher Robot <gobot@golang.org>2024-04-14 18:23:45 +0000
commit71d84ee7b4e42ea9f35f409f169bebd44a360331 (patch)
tree2d31030030a8804cbaa582d9a144c64dd6613012 /doc
parent37f482223f331c4400797f72158fcf1eaa1793c4 (diff)
downloadgo-71d84ee7b4e42ea9f35f409f169bebd44a360331.tar.gz
go-71d84ee7b4e42ea9f35f409f169bebd44a360331.zip
net: add Unwrap to *DNSError
Fixes #63116 Change-Id: Iab8c415555ab85097be6d2d133b3349c5219a23b GitHub-Last-Rev: 8a8177b9af5509ebbaa701b06c79126aae7510a8 GitHub-Pull-Request: golang/go#63348 Reviewed-on: https://go-review.googlesource.com/c/go/+/532217 Auto-Submit: Ian Lance Taylor <iant@google.com> Reviewed-by: Damien Neil <dneil@google.com> Reviewed-by: Ian Lance Taylor <iant@google.com> Commit-Queue: Ian Lance Taylor <iant@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/next/6-stdlib/99-minor/net/63116.md3
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/next/6-stdlib/99-minor/net/63116.md b/doc/next/6-stdlib/99-minor/net/63116.md
new file mode 100644
index 0000000000..d847a5545e
--- /dev/null
+++ b/doc/next/6-stdlib/99-minor/net/63116.md
@@ -0,0 +1,3 @@
+The [`DNSError`](/pkg/net#DNSError) type now wraps errors caused by timeouts
+or cancelation. For example, `errors.Is(someDNSErr, context.DeadlineExceedeed)`
+will now report whether a DNS error was caused by a timeout.