Releases: LZStock-OS/stackerr
Releases · LZStock-OS/stackerr
v0.1.0
Added
- Initial release of
stackerrlibrary. Recoverfunction to handle panics and wrap errors with stack traces.ThrowPanicfunction to explicitly panic with a wrapped error containing the current stack trace.GetStackhelper to retrieve stack traces safely.- Internal
callStackErrtype implementingerrorandUnwrapinterface. - Configuration support via
stackerr.Config:StripSequences: Custom strings to strip from function names (e.g.,(0,({).PathReplacements: Custom file path cleanup (e.g., replacing$GOPATHwith[Proj]).MaxStackDepth: Configurable stack trace depth limit (default: 10).Output: Configurableio.Writerfor panic logs (default:os.Stderr).
- Unit tests (
stackerr_test.go) and usage examples (example_test.go). - GitHub Actions CI workflow for automated testing.
- MIT License.