errors v0.5.0 Release Notes

Release Date: 2016-05-23 // almost 8 years ago
  • What's new

    • New, Errorf, Wrap, and Wrapf, now store the stack trace of their caller (currently limited to a depth of 32). This can be retrieved by asserting for the following interface

      type Stack interface { Stack() []uintptr}

    The resulting []uintptr is the same format as runtime.Callers. At the moment there are no helpers to inspect this information.