go/doc/next/6-stdlib/99-minor/net/63116.md

4 lines
198 B
Markdown
Raw Normal View History

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.