aboutsummaryrefslogtreecommitdiff
path: root/src/encoding/json
diff options
context:
space:
mode:
authorShubham Sharma <shubham.sha12@gmail.com>2019-03-21 21:10:12 +0530
committerBrad Fitzpatrick <bradfitz@golang.org>2019-04-23 14:11:33 +0000
commitfac3b5d05ecf31a2491949cc905312a34e272ae8 (patch)
tree4a82ef10460246d855e9ece69b40addfbfe561b2 /src/encoding/json
parent7e08c7f43da876bc451b774808e323215a193abd (diff)
downloadgo-fac3b5d05ecf31a2491949cc905312a34e272ae8.tar.xz
net: add IsNotFound field to DNSError
This adds the ability to determine if a lookup error was due to a non-existent hostname. Previously users needed to do string matching on the DNSError.Err value. Fixes #28635 Change-Id: If4bd3ad32cbc2db5614f2c6b72e0a9161d813efa Reviewed-on: https://go-review.googlesource.com/c/go/+/168597 Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/encoding/json')
0 files changed, 0 insertions, 0 deletions