An idiomatic Go (golang) validation package. Supports configurable and extensible validation rules (validators) using normal language constructs instead of error-prone struct tags. Pozzo-validation is a Go package that provides configurable and extensible data validation capabilities. It has the following features. Use normal programming constructs rather than error-prone struct tags to specify how data should be validated. Can validate data of different types, e.g., structs, strings, byte slices, slices, maps, and arrays. Can validate custom data types as long as they implement the Validatable interface. Can validate data types that implement the sql.Valuer interface (e.g. sql.NullString). Customizable and well-formatted validation errors. Error code and message translation support. Provide a rich set of validation rules right out of the box. Extremely easy to create and use custom validation rules.

Features

  • Can validate data of different types, e.g., structs, strings, byte slices, slices, maps, arrays
  • Can validate custom data types as long as they implement the Validatable interface
  • Error code and message translation support
  • Provide a rich set of validation rules right out of box
  • Extremely easy to create and use custom validation rules
  • Can validate custom data types as long as they implement the Validatable interface

Project Samples

Project Activity

See All Activity >

Categories

Frameworks

License

MIT License

Follow ozzo-validation

ozzo-validation Web Site

Other Useful Business Software
Gemini 3 and 200+ AI Models on One Platform Icon
Gemini 3 and 200+ AI Models on One Platform

Access Google's best plus Claude, Llama, and Gemma. Fine-tune and deploy from one console.

Build generative AI apps with Vertex AI. Switch between models without switching platforms.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of ozzo-validation!

Additional Project Details

Operating Systems

Linux, Mac, Windows

Programming Language

Go

Related Categories

Go Frameworks

Registered

2023-01-17