awesome-repositories.com
Blog
MCP
awesome-repositories.com

Descubre los mejores repositorios open-source con nuestra búsqueda potenciada por IA.

ExplorarBúsquedas curadasAlternativas open-sourceSoftware autohospedableBlogMapa del sitio
ProyectoAcerca deCómo clasificamosPrensaServidor MCP
Aviso legalPrivacidadTérminos
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
spf13 avatar

spf13/cast

0
View on GitHub↗
3,976 estrellas·329 forks·Go·MIT·4 vistas

Cast

Cast es una biblioteca de conversión de tipos y utilidad de casting de datos en Go, diseñada para transformar varios tipos de datos primitivos en formatos de destino específicos. Funciona como un transformador de tipos primitivos que gestiona la conversión de tipos básicos de Go mientras maneja datos incompatibles.

La biblioteca proporciona mecanismos para el manejo dinámico de tipos, permitiendo al sistema procesar datos sin tipo o interfaces y convertir valores de forma segura a tipos concretos durante el tiempo de ejecución. Incluye lógica para distinguir entre resultados exitosos de valor cero y conversiones fallidas mediante informes de error y validación explícitos.

Features

  • Primitive Type Converters - Provides utilities for transforming values between basic primitive types like strings, integers, floats, and booleans.
  • Data Type Casting - Provides a comprehensive utility for casting data types with built-in validation and error handling.
  • Conversion Validation - Convert data to a target type and return an explicit error to distinguish failed conversions from successful zero values.
  • Dynamic Type Casting - Manages untyped or interface data in Go by safely casting values into usable concrete types during runtime.
  • Interface-Based Data Handling - Accepts empty interfaces to allow the system to process any arbitrary data type before attempting a cast.
  • Primitive Type Converters - Converts various primitive data types to a specific target format within Go while handling incompatible types.
  • Primitive Type Transformers - Safely casts various basic Go data types into specific target formats.
  • Type-Based Dispatching - Uses Go type switches to dynamically select the appropriate conversion logic based on the input's runtime type.
  • Zero-Value Fallbacks - Returns the default value of a target type when a conversion fails to prevent application crashes.
  • Static Conversion Paths - Defines static conversion paths between numeric and string primitives to ensure consistent data transformation.
  • Data Type Validation - Ensures data conforms to expected Go types through conversion attempts and explicit error reporting.
  • Error Wrapping - Implements custom error wrapping to distinguish between invalid input data and successful zero-value conversion results.
  • Development Utilities - Safe data type conversion library.

Historial de estrellas

Gráfico del historial de estrellas de spf13/castGráfico del historial de estrellas de spf13/cast

Búsqueda con IA

Explora más repositorios increíbles

Describe lo que necesitas en lenguaje sencillo: la IA clasifica miles de proyectos open-source curados por relevancia.

Start searching with AI

Preguntas frecuentes

¿Qué hace spf13/cast?

Cast es una biblioteca de conversión de tipos y utilidad de casting de datos en Go, diseñada para transformar varios tipos de datos primitivos en formatos de destino específicos. Funciona como un transformador de tipos primitivos que gestiona la conversión de tipos básicos de Go mientras maneja datos incompatibles.

¿Cuáles son las características principales de spf13/cast?

Las características principales de spf13/cast son: Primitive Type Converters, Data Type Casting, Conversion Validation, Dynamic Type Casting, Interface-Based Data Handling, Primitive Type Transformers, Type-Based Dispatching, Zero-Value Fallbacks.

¿Qué alternativas de código abierto existen para spf13/cast?

Las alternativas de código abierto para spf13/cast incluyen: hapijs/joi — Joi is a JavaScript data validation library used to define schemas that validate, cast, and sanitize data objects. It… phuocng/1loc — 1loc is a JavaScript utility library and multifaceted toolkit providing a collection of single-line functions for… vyperlang/vyper — Vyper is a security-focused, typed programming language and compiler designed for creating smart contracts that… trekhleb/learn-python — This project is an educational resource designed for learning the Python programming language. It serves as a tutorial… spatie/data-transfer-object — This library provides a framework for defining typed, immutable data structures in PHP. It enables developers to… processing/processing — Processing is a creative coding environment and Java graphics library designed for writing visual sketches that…

Alternativas open-source a Cast

Proyectos open-source similares, clasificados según cuántas características comparten con Cast.
  • hapijs/joiAvatar de hapijs

    hapijs/joi

    21,192Ver en GitHub↗

    Joi is a JavaScript data validation library used to define schemas that validate, cast, and sanitize data objects. It functions as an object schema validator and parser, ensuring that input data matches specific types and formats before it is processed by an application. The library features a conditional validation engine capable of dynamic schema enforcement, where validation logic and dependencies change based on the values of other keys within an object. It also serves as a data casting and sanitization tool, transforming input values into target types and removing sensitive keys from the

    JavaScripthapijavascriptschema
    Ver en GitHub↗21,192
  • phuocng/1locAvatar de phuocng

    phuocng/1loc

    6,738Ver en GitHub↗

    1loc is a JavaScript utility library and multifaceted toolkit providing a collection of single-line functions for common mathematical, string, date, and geometric operations. It functions as a set of functional programming helpers and data validation predicates designed to perform atomic transformations and validations. The project includes a geometry math library for calculating distances, angles, and spatial overlaps between points and rectangles, alongside a text manipulation library for casting, capitalizing, and analyzing string content. The toolkit covers broader capability areas inclu

    MDXeleventyjavascriptjavascript-utils
    Ver en GitHub↗6,738
  • spatie/data-transfer-objectAvatar de spatie

    spatie/data-transfer-object

    2,226Ver en GitHub↗

    This library provides a framework for defining typed, immutable data structures in PHP. It enables developers to construct structured objects from raw input arrays, ensuring consistent data shapes and schema integrity across different layers of an application. By enforcing strict property types and validation rules during instantiation, the library prevents invalid data states and simplifies the handling of complex information. The project distinguishes itself through its use of attribute-driven metadata, which allows for property renaming, custom validation, and serialization logic directly

    PHPobjectsphpvalue
    Ver en GitHub↗2,226
  • trekhleb/learn-pythonAvatar de trekhleb

    trekhleb/learn-python

    18,058Ver en GitHub↗

    This project is an educational resource designed for learning the Python programming language. It serves as a tutorial repository and programming guide, providing a collection of annotated scripts, code examples, and cheatsheets to help users master syntax and core fundamentals. The resource focuses on moving from basic language syntax to advanced implementation, with a particular emphasis on object-oriented programming, the use of the Python standard library, and scripting automation for business workflows. The content covers a broad range of programming capabilities, including control flow

    Pythonlearninglearning-by-doinglearning-python
    Ver en GitHub↗18,058
Ver las 30 alternativas a Cast→