2 个仓库
Tools for enhancing standard errors with additional context, such as custom IDs and stack traces.
Distinct from Error Handling: Focuses on enriching error metadata for debugging rather than monadic or type-safe error handling strategies.
Explore 2 awesome GitHub repositories matching software engineering & architecture · Error Wrapping Utilities. Refine with filters or upvote what's useful.
Lancet 是 Go 标准库的全面扩展,提供了一系列可复用的函数和数据结构,旨在减少应用中的样板代码。它是一个跨多个领域的通用工具包,包括并发、安全、网络和函数式逻辑。 该项目的特色在于针对 Go 并发的专用工具包(如键控锁和基于通道的流处理),以及支持柯里化和函数组合的专用函数式编程套件。它还包含一个使用 AES、RSA 和 SM 标准实现对称和非对称加密的专用密码学库。 该库涵盖了广泛的功能领域,包括 LRU 缓存和二叉搜索树等高级数据结构、代数和统计数学计算,以及用于进程和文件管理的操作系统集成。它还提供了用于 HTTP 网络、日期和时间操作,以及集合代数和惰性流求值等高级数据处理的实用程序。
Provides enhanced error handling by wrapping errors with custom IDs, messages, and stack traces for better debugging.
errors is a Go error handling library and stack trace utility that wraps standard errors with execution call stacks and contextual information. It captures program execution paths at the exact moment an error is initialized, extracting granular file paths, line numbers, and function symbols from raw program counter addresses. The library maintains parent-child relationships between wrapped errors to allow deep inspection, unwrapping of root causes, and combination of multiple errors into unified structures. It implements standard error interfaces so enhanced error objects can be used intercha
Constructs and wraps errors with custom messages, formatting strings, and stack depth skipping.