mirror of
https://github.com/golang/go.git
synced 2025-05-28 02:41:30 +00:00
This is a follow-up to CL 578195. Change-Id: Iab38ee008df8b06c300b0027019cc0464bdadca1 Reviewed-on: https://go-review.googlesource.com/c/go/+/579796 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> Reviewed-by: Cherry Mui <cherryyz@google.com> Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
197 B
197 B
The [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.