govalidator is a validation and sanitization library for Go that provides validators and sanitizers for strings, numerics, slices, and structs.
The library addresses the need to validate and clean data across multiple types in Go applications. It offers a collection of built-in validators for common patterns like email addresses, URLs, IP addresses, and numeric ranges, as well as sanitizers to clean string input. The approach is straightforward: developers call validator functions on their data to check correctness or sanitizer functions to normalize it before use.
Developers should choose this library if they need lightweight, focused validation without external dependencies for typical data types. It suits projects that require basic to moderate validation logic for user input, configuration values, or API parameters. The library is particularly useful when you want to avoid building custom validation logic for standard patterns or when you need both validation and sanitization in a single package.
The project maintains a stable codebase with infrequent but deliberate updates addressing bug fixes and minor enhancements. Pull requests receive thoughtful review and discussion before integration. The maintainer responds to issues and questions, though response timing varies. Development activity is sparse but consistent, reflecting a mature library that has reached a stable state rather than one undergoing active feature expansion.