2 مستودعات
Transfers data between Go types by matching fields, methods, and tags at runtime without manual assignment.
Distinct from Reflection-Based Data Binding: Distinct from Reflection-Based Data Binding: focuses on data transfer between types rather than request payload binding.
Explore 2 awesome GitHub repositories matching web development · Reflection-Based Data Mappers. Refine with filters or upvote what's useful.
Copier is a Go library that deep copies data between structs, maps, and slices using reflection-based field mapping and struct tag controls. At its core, it automatically transfers values by matching source and destination fields by name, type, and methods, creating fully independent copies of nested data structures to prevent shared references and unintended mutations. The library distinguishes itself through tag-driven copy rules that give developers fine-grained control over the copying process. Struct tags can enforce mandatory field copying, exclude specific fields from transfer, or map
Transfers data between Go types by matching fields, methods, and tags at runtime.
YYModel هي مكتبة تعيين نماذج JSON ومُعيّن بيانات ثنائي الاتجاه مصمم لتحويل بيانات JSON الخام إلى كائنات نموذج مهيكلة والعكس. تعمل كمحلل JSON آمن للنوع يستخدم الإكراه التلقائي للنوع لمنع تعطل التطبيقات الناجم عن أنواع البيانات غير المتوافقة أثناء عملية التحليل. يستخدم إطار العمل استبطان وقت التشغيل لتعيين مفاتيح JSON إلى خصائص النموذج بناءً على قواعد التسمية والتكوينات الصريحة. يدعم إنشاء كائنات النموذج المتداخلة من خلال اجتياز عودي لتسلسل البيانات ويوفر طبقة ترجمة متسقة لكل من التسلسل وإلغاء التسلسل. تغطي مساحة قدراتها منطق تعيين البيانات لربط المفاتيح غير المتطابقة بالخصائص وسير عمل تسلسل يقوم بتوحيد كائنات التاريخ باستخدام تنسيق ISO8601. تقوم الأداة بتحويل القواميس الخام إلى كائنات مهيكلة باستخدام نهج قائم على المخطط لضمان سلامة النوع لنقل الشبكة أو التخزين المحلي.
Uses runtime introspection and reflection to instantiate nested models and map data based on predefined naming rules.