Skip to content
This repository has been archived by the owner on Dec 1, 2021. It is now read-only.

errors 0.5.0

Compare
Choose a tag to compare
@davecheney davecheney released this 23 May 09:27
· 102 commits to master since this release

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.