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، يوفر مجموعة من الدوال وهياكل البيانات القابلة لإعادة الاستخدام والمصممة لتقليل الكود المتكرر (boilerplate) في التطبيقات. يعمل كأداة عامة عبر مجالات متعددة، بما في ذلك التزامن، والأمان، والشبكات، والمنطق الوظيفي. يتميز المشروع بأدوات متخصصة لتزامن Go، مثل القفل بالمفاتيح (keyed locking) ومعالجة التدفق القائمة على القنوات، ومجموعة أدوات برمجة وظيفية مخصصة تدعم التجزئة (currying) وتكوين الدوال. كما يتضمن مكتبة تشفير مخصصة تنفذ التشفير المتماثل وغير المتماثل باستخدام معايير AES وRSA وSM. تغطي المكتبة مجموعة واسعة من مجالات القدرات، بما في ذلك هياكل البيانات المتقدمة مثل ذاكرة التخزين المؤقت LRU وأشجار البحث الثنائية، والحسابات الرياضية للجبر والإحصاء، وتكامل نظام التشغيل لإدارة العمليات والملفات. كما توفر أدوات لشبكات HTTP، ومعالجة التاريخ والوقت، ومعالجة البيانات عالية المستوى مثل جبر المجموعات وتقييم التدفق الكسول (lazy stream evaluation).
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.