mirror of
https://github.com/golang/go.git
synced 2025-05-16 12:54:37 +00:00
Change-Id: Ib51283b35d6d35acd7a90cd531ff6897a23d9894 GitHub-Last-Rev: dd485f332e58c9467d68ed571317dfd56eea9d16 GitHub-Pull-Request: golang/go#66985 Reviewed-on: https://go-review.googlesource.com/c/go/+/580797 Reviewed-by: Ian Lance Taylor <iant@google.com> Auto-Submit: Ian Lance Taylor <iant@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Joedian Reid <joedian@google.com>
4 lines
198 B
Markdown
4 lines
198 B
Markdown
The [DNSError] type now wraps errors caused by timeouts or cancellation.
|
|
For example, `errors.Is(someDNSErr, context.DeadlineExceedeed)`
|
|
will now report whether a DNS error was caused by a timeout.
|