Structs is a reflection utility and type inspection framework for Go. It provides tools for inspecting, converting, and validating data structures by extracting field names, tags, and values from Go objects.
الميزات الرئيسية لـ fatih/structs هي: Struct-to-Map Converters, Go Struct Reflection Utilities, Field Inspection Utilities, Go Data Mapping Libraries, Recursive Pointer Unwrapping, Runtime Type Validation, Struct Metadata Extractors, Struct Type Identification.
تشمل البدائل مفتوحة المصدر لـ fatih/structs: goccy/go-yaml — This library is a Go-based utility for encoding and decoding YAML data into native language structures. It facilitates… jinzhu/copier — Copier is a Go library that deep copies data between structs, maps, and slices using reflection-based field mapping… toml-lang/toml — TOML is a configuration file format designed for human readability and unambiguous mapping to hash tables. It serves… facebook/prop-types — prop-types is a JavaScript object validator and runtime type checker. It serves as a development tool for verifying… arktypeio/arktype — Arktype is a TypeScript runtime validation library and schema orchestrator. It synchronizes TypeScript types with… antonmedv/expr — Expr is a high-performance expression evaluation engine and language for Go applications. It functions as a dynamic…
This library is a Go-based utility for encoding and decoding YAML data into native language structures. It facilitates the transformation of complex objects into human-readable text formats and provides mechanisms for mapping data fields through reflection and custom type handling. The library distinguishes itself by maintaining an intermediate abstract syntax tree, which allows for precise document modifications and the preservation of comments during serialization. It includes a path-based query engine that enables users to navigate, filter, and update document hierarchies without manual it
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
Arktype is a TypeScript runtime validation library and schema orchestrator. It synchronizes TypeScript types with runtime data validation, allowing users to define type-safe schemas that ensure unknown data adheres to specific structures during application execution. The project distinguishes itself by using set-theory type analysis to determine intersections and subtype compatibility, alongside JIT-compiled validation functions for optimized performance. It supports advanced type modeling through branded type constraints, recursive alias resolution, and the ability to generate runtime valida
prop-types is a JavaScript object validator and runtime type checker. It serves as a development tool for verifying that object properties match predefined specifications, primarily used to ensure that data passed into React components aligns with expected types. The utility detects data inconsistencies by logging warnings to the console when mismatches occur, rather than throwing exceptions. It employs a stateful warning cache to prevent duplicate logs and restricts validation logic to non-production environments to avoid performance overhead in released builds. The project covers data vali