The highest tagged major version is
v2 .
Discover Packages
github.com/faustbrian/go-queue
internal
safeerr
package
Version:
v1.1.5
Opens a new window with list of versions in this module.
Published: Oct 22, 2026
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package safeerr provides errors that preserve a cause without exposing its
potentially credential-bearing text through Error.
Wrap preserves cause for errors.Is and errors.As while exposing only message.
The caller must supply safe message text; cause is accessible through Unwrap.
Even a nil cause produces a non-nil wrapper.
Error wraps an error with safe public text.
Error returns text that is safe to log.
Unwrap returns the original error for programmatic inspection.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.