]> Cypherpunks repositories - gostls13.git/commit
errors: add Unwrap, Is, and As
authorMarcel van Lohuizen <mpvl@golang.org>
Fri, 22 Feb 2019 23:09:40 +0000 (00:09 +0100)
committerMarcel van Lohuizen <mpvl@golang.org>
Wed, 27 Feb 2019 19:09:40 +0000 (19:09 +0000)
commit62f5e8156ef56fa61e6af56f4ccc633bde1a9120
treeebec87666eca8e47194fdc2a7431c5a13f4ac3cd
parent37f84817247d3b8e687a701ccb0d6bc7ffe3cb78
errors: add Unwrap, Is, and As

Unwrap, Is and As are as defined in proposal
Issue #29934.

Also add Opaque for enforcing an error cannot
be unwrapped.

Change-Id: I4f3feaa42e3ee7477b588164ac622ba4d5e77cad
Reviewed-on: https://go-review.googlesource.com/c/163558
Run-TryBot: Marcel van Lohuizen <mpvl@golang.org>
Reviewed-by: Damien Neil <dneil@google.com>
src/errors/example_test.go
src/errors/wrap.go [new file with mode: 0644]
src/errors/wrap_test.go [new file with mode: 0644]
src/go/build/deps_test.go