2 Repos
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 ist eine JSON-Modell-Mapping-Bibliothek und ein bidirektionaler Daten-Mapper, der darauf ausgelegt ist, rohe JSON-Daten in strukturierte Modellobjekte zu transformieren und umgekehrt. Es fungiert als typsicherer JSON-Parser, der automatische Typ-Konvertierung einsetzt, um Anwendungsabstürze durch inkompatible Datentypen während des Parsing-Prozesses zu verhindern. Das Framework nutzt Laufzeit-Introspektion, um JSON-Keys basierend auf Namensregeln und expliziten Konfigurationen auf Modelleigenschaften abzubilden. Es unterstützt die Instanziierung verschachtelter Modellobjekte durch rekursive Traversierung der Datenhierarchie und bietet eine konsistente Übersetzungsschicht für Serialisierung und Deserialisierung. Der Funktionsumfang umfasst Daten-Mapping-Logik für die Verknüpfung nicht übereinstimmender Keys mit Eigenschaften sowie einen Serialisierungs-Workflow, der Datumsobjekte im ISO8601-Format standardisiert. Das Tool transformiert rohe Dictionaries mithilfe eines schema-gesteuerten Ansatzes in strukturierte Objekte, um Typsicherheit für die Netzwerkübertragung oder lokale Speicherung zu gewährleisten.
Uses runtime introspection and reflection to instantiate nested models and map data based on predefined naming rules.