gozod-validating

Validate Go structs and dynamic maps with gozod schemas.

23|2|Updated Jun 9, 2025
One-click install
npx skills add https://github.com/kaptinlin/gozod --skill gozod-validating
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gozod-validating
Source: https://github.com/kaptinlin/gozod/tree/main/.agents/skills/gozod-validating
Command: npx skills add https://github.com/kaptinlin/gozod --skill gozod-validating

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The GoZod validation library provides strict, type-safe data validation for Go applications, including struct tag support and zero external dependencies.

Core Features & Use Cases

  • Declarative struct tag validation for Go structs with gozod:"rules"
  • Programmatic schemas for dynamic validation of JSON-like data
  • Support for unions, lazy evaluation, and error handling
  • Zero-dependency, high-performance validation suitable for API validation and config parsing

Quick Start

Install the library and define a schema using gozod.FromStructT or programmatic builders, then call Parse or StrictParse on input data.

Frequently Asked Questions about gozod-validating

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I validate API input and configuration data in Go using struct tags?

Type-safe data validation in Go can be achieved using declarative struct tags. By applying the `gozod:"rules"` tag to Go structs, you can declaratively validate API input and parse configurations without writing manual checks.

What is the best way to validate dynamic JSON-like data in Go without adding external dependencies?

Programmatic schemas allow you to validate dynamic JSON-like data in Go with zero external dependencies. You can build schemas programmatically to ensure strict type safety and data integrity for dynamic maps.

Can I use this type-safe Go validation approach for complex union types and lazy evaluation?

Yes, this type-safe Go validation approach supports complex data structures. It includes built-in support for unions and lazy evaluation, allowing you to handle complex validation logic and nested data structures effectively.

How does strict data validation handle errors when parsing Go structs?

Strict data validation handles errors during Go struct parsing by returning detailed validation errors. You can call Parse or StrictParse on input data to capture and manage validation failures across your structs and dynamic maps.

Does this zero-dependency Go validation library support high-performance API validation?

Yes, this zero-dependency Go validation library is suitable for high-performance API validation. It leverages strict type safety and declarative struct tags to validate data efficiently without bloat from external packages.