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

Découvrez les meilleurs dépôts open-source grâce à notre recherche par IA.

ExplorerRecherches sélectionnéesAlternatives open sourceLogiciels auto-hébergésBlogPlan du site
ProjetServeur MCPÀ proposNotre méthodologiePresse
Mentions légalesConfidentialitéConditions d'utilisation
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
asaskevich avatar

asaskevich/govalidator

0
View on GitHub↗
6,203 stars·566 forks·Go·MIT·9 vuesasaskevich.dev/projects/govalidator↗

Govalidator

[Go] Package of validators and sanitizers for strings, numerics, slices and structs

Features

  • Go Validation Libraries - Validates Go struct fields using declarative tags and a registry of built-in and custom validation functions.
  • Go Data Validation - Validates Go struct fields by parsing declarative tags and applying built-in or custom validation rules at runtime.
  • Struct Tag Validators - Validates struct fields by applying built-in or custom validation rules declared in struct tags, returning errors for any violations.
  • Reflection-Driven Validation - Uses Go's reflect package to traverse struct fields, extract tags, and invoke validators dynamically.
  • Numeric Range Validators - Tests whether numeric values fall within specified inclusive ranges using Go's type system.
  • Type-Aware - Checks numeric values against range constraints using Go's type system to handle int, float, and uint variants.
  • Character Set Validators - Tests whether a string contains only characters of a certain type, such as alphabetic, numeric, or ASCII.
  • Range Inclusion Checks - Tests whether numeric values fall within specified inclusive ranges using Go's type system.
  • Custom Validation Functions - Registers a custom validation function for a specific Go type, enabling validation of custom data structures.
  • Function Registries - Maintains a global map of named validation functions that can be registered and invoked by tag references.
  • Parameterized Custom Validators - Registers a custom validation function that accepts parameters, enabling configurable validation rules.
  • Parameterized Validation Functions - Supports passing arguments to validators via tag syntax, enabling configurable validation rules per field.
  • Validation Error Aggregators - Collects all field-level validation failures into a single iterable error object with field-keyed lookup.
  • Validation Constraints - Validates struct fields by parsing declarative tags and applying registered validation functions at runtime.
  • String Validation and Normalization - Checks strings against formats like email, URL, and IP, and removes unwanted characters via whitelist or blacklist.
  • String Format Validators - Tests whether strings match standard formats like email, URL, IP address, UUID, or credit card number.
  • Element Filtering - Returns a new slice containing only elements that pass a specified condition.
  • Collection Iteration - Applies a function to each element of a slice in order.
  • String Case Transformers - Ships functions for converting strings between CamelCase and underscore-separated formats.
  • Email Address Validators - Verifies that strings conform to valid email address formats using built-in validators.
  • IP Address Validation - Verifies that strings are structurally valid IPv4 or IPv6 addresses.
  • URL Validations - Verifies that strings conform to valid URL format using built-in validator functions.
  • Functional Slice Utilities - Provides functional utilities for filtering, mapping, counting, and finding elements within slices.
  • Slice Query Utilities - Provides functions to filter, map, count, and find elements within slices.
  • Array Element Finding - Returns the first element in a slice that meets a given condition.
  • Predicate-Based Counting - Counts how many elements in a slice satisfy a given condition.
  • String Sanitizers - Removes unwanted characters from strings using whitelist or blacklist filters.
  • Character Blacklist Filters - Removes all characters from a string that match a specified set of disallowed characters.
  • Character Whitelist and Blacklist Filters - Applies whitelist or blacklist character filtering to strings through a sequential character-by-character pass.
  • Whitelist - Provides whitelist-based string sanitization that removes characters outside an allowed set.
  • Slice Mapping Functions - Transforms each element of a slice by applying a function and returns a new slice with the results.
  • Range Length Validations - Verifies that string length in bytes or runes falls within specified minimum and maximum bounds.
  • Context-Aware Custom Validators - Registers a custom validation function for a specific type that can access the full struct context for dependent validation.
  • Element-Level Validation - Runs validation checks against every element in a slice and reports which items fail.
  • Template-Based Map Validators - Validates map structures by comparing keys and nested values against a template map of expected validation rules.
  • General Value String Representations - Converts any Go value, including structs and pointers, into its string representation.
  • Validation Error Customizations - Overrides default validation error messages with custom text by appending it to the validation tag.
  • String Pattern Validators - Verifies that strings match regular expression patterns.
  • Validation Libraries - Data validation and sanitization tools.

Historique des stars

Graphique de l'historique des stars pour asaskevich/govalidatorGraphique de l'historique des stars pour asaskevich/govalidator

Recherche par IA

Explorez plus de dépôts awesome

Décrivez vos besoins en langage naturel — l'IA classe des milliers de projets open source sélectionnés par pertinence.

Start searching with AI

Alternatives open source à Govalidator

Projets open source similaires, classés selon le nombre de fonctionnalités partagées avec Govalidator.
  • go-ozzo/ozzo-validationAvatar de go-ozzo

    go-ozzo/ozzo-validation

    4,072Voir sur GitHub↗

    ozzo-validation is a programmable data validation library for Go that verifies structs, maps, and primitive types using a declarative, rule-based approach. It functions as an interface-based validator, allowing for the recursive checking of nested data structures and custom types without the use of struct tags. The framework distinguishes itself as a context-aware validation engine, supporting the propagation of request-scoped data to rules that depend on external state. It provides extensive extensibility through custom rule definitions and the ability to override default failure text with l

    Gogogolangozzo
    Voir sur GitHub↗4,072
  • go-playground/validatorAvatar de go-playground

    go-playground/validator

    20,028Voir sur GitHub↗

    This is a Go struct validation library used to maintain data integrity by enforcing constraints on fields, slices, and maps. It functions as a schema validation tool and data integrity validator, ensuring that complex nested structures adhere to predefined rules. The library utilizes struct tags to configure validation logic at runtime and supports a custom function registry for extending validation rules. It is distinguished by its ability to perform cross-field dependency evaluation, allowing the comparison of values between different fields within the same data structure to ensure logical

    Goerror-handlingtranslationvalidation
    Voir sur GitHub↗20,028
  • arktypeio/arktypeAvatar de arktypeio

    arktypeio/arktype

    7,780Voir sur GitHub↗

    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

    TypeScriptjavascriptparsingruntime-typechecking
    Voir sur GitHub↗7,780
  • any86/any-ruleAvatar de any86

    any86/any-rule

    8,662Voir sur GitHub↗

    Any-rule is a multi-platform regular expression tool that provides a curated catalog of over 70 ready-to-use patterns for validating and extracting common data formats. The project separates its static regex collection from editor-specific plugins, allowing the same pattern library to be accessed through VS Code, IntelliJ IDEA, Alfred Workflow, and a web interface. The tool enables keyword-based pattern retrieval, letting users search for the correct regex by typing descriptive terms rather than remembering exact syntax. It covers a broad range of validation needs including email addresses, U

    TypeScriptawsomeexpressregex
    Voir sur GitHub↗8,662
Voir les 30 alternatives à Govalidator→

Questions fréquentes

Que fait asaskevich/govalidator ?

[Go] Package of validators and sanitizers for strings, numerics, slices and structs

Quelles sont les fonctionnalités principales de asaskevich/govalidator ?

Les fonctionnalités principales de asaskevich/govalidator sont : Go Validation Libraries, Go Data Validation, Struct Tag Validators, Reflection-Driven Validation, Numeric Range Validators, Type-Aware, Character Set Validators, Range Inclusion Checks.

Quelles sont les alternatives open-source à asaskevich/govalidator ?

Les alternatives open-source à asaskevich/govalidator incluent : go-ozzo/ozzo-validation — ozzo-validation is a programmable data validation library for Go that verifies structs, maps, and primitive types… go-playground/validator — This is a Go struct validation library used to maintain data integrity by enforcing constraints on fields, slices, and… arktypeio/arktype — Arktype is a TypeScript runtime validation library and schema orchestrator. It synchronizes TypeScript types with… any86/any-rule — Any-rule is a multi-platform regular expression tool that provides a curated catalog of over 70 ready-to-use patterns… go-validator/validator — This project is a data validation framework for the Go programming language that enforces integrity by applying… sindresorhus/ow — ow is a type-safe schema validation library for TypeScript that verifies data integrity at runtime. It functions as a…