1
0
mirror of https://github.com/golang/go synced 2024-11-26 11:18:56 -07:00
go/doc
Jason A. Donenfeld f7342596da syscall: add DLLError.Unwrap function
Because we're expecting for future functions to be unavailable, we
should add an Unwrap() function to the DLLError struct, so that people
can test for this situation easily via:

    if errors.Is(err, syscall.ERROR_PROC_NOT_FOUND) { ... }

DLLError already was wrapping the underlying Errno error, but never got
the Go 1.13 helper method.

Fixes golang/go#42584

Change-Id: I0f32a5146946b1b37a30897ba825a56faefc792c
Reviewed-on: https://go-review.googlesource.com/c/go/+/269761
Run-TryBot: Jason A. Donenfeld <Jason@zx2c4.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
Trust: Alex Brainman <alex.brainman@gmail.com>
Trust: Jason A. Donenfeld <Jason@zx2c4.com>
2020-11-21 07:37:02 +00:00
..
articles doc/articles/race_detector.html: add darwin/arm64 2020-11-09 20:41:26 +00:00
codewalk
gopher
play
progs
asm.html
cmd.html
contribute.html doc: mention Trust+1 in contribution guide 2020-10-28 19:28:08 +00:00
debugging_with_gdb.html
diagnostics.html doc: fix misspelling of “initialization” in diagnostics.html 2020-11-20 20:02:47 +00:00
editors.html
effective_go.html
gccgo_contribute.html
gccgo_install.html
go1.1.html
go1.2.html
go1.3.html
go1.4.html
go1.5.html
go1.6.html
go1.7.html
go1.8.html
go1.9.html
go1.10.html
go1.11.html
go1.12.html
go1.13.html
go1.14.html
go1.15.html
go1.16.html syscall: add DLLError.Unwrap function 2020-11-21 07:37:02 +00:00
go1.html
go1compat.html
go_faq.html
go_mem.html
go_spec.html spec: split shift examples into groups for 32- and 64-bit ints 2020-10-30 16:20:05 +00:00
go-logo-black.png
go-logo-blue.png
go-logo-white.png
help.html
ie.css
install-source.html doc: update install docs for 387->softfloat transition 2020-10-09 02:49:19 +00:00
install.html
share.png
tos.html