Documentation
¶
Overview ¶
Package pkgerrors provides adapters for errors generated by the github.com/pkg/errors package.
Importing this package installs the github.com/pkg/errors adapter on the global set of adapters of the parent errors-go package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Adapt ¶
Adapt adapts err if it was generated by the github.com/pkg/errors package.
Note that most error types for github.com/pkg/errors are compatible with the design of the errors-go package without needing to be modified. The only case where the error is actually changed is for errors with stack traces, because the StackTrace types are concrete types exposed by each package, and even if they are very similar they cannot be implicitly converted by the Go compiler.
Types ¶
This section is empty.