diff options
author | Mateusz Poliwczak <mpoliwczak34@gmail.com> | 2024-04-13 07:01:44 +0000 |
---|---|---|
committer | Gopher Robot <gobot@golang.org> | 2024-04-14 18:23:45 +0000 |
commit | 71d84ee7b4e42ea9f35f409f169bebd44a360331 (patch) | |
tree | 2d31030030a8804cbaa582d9a144c64dd6613012 /doc | |
parent | 37f482223f331c4400797f72158fcf1eaa1793c4 (diff) | |
download | go-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.md | 3 |
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. |