Skip to content
This repository has been archived by the owner on Aug 31, 2019. It is now read-only.

Implement Unwrap() method

Latest
Compare
Choose a tag to compare
@jjeffery jjeffery released this 01 Mar 01:22

This release implements the Unwrap() method for all error types that have a Cause() method.

The Unwrap() method implements the Wrapper interface defined in the Go 2 draft designs for error inspection and printing.

Note that this release does not change the fact that use of this package is deprecated. It is intended to make this package usable with the new error inspection features, assuming that they make it into the Go standard library in a future release.