Introduction to Zog schema parsing and validation
masterZog is a schema builder for Go designed for runtime value parsing and validation. It allows you to define schemas to perform one or both of the following tasks:
- Transform a value: Convert an input value into a shape that matches your defined schema.
- Assert a shape: Validate that an existing value conforms to a specific structure.
Zog features a Zod-like API using method chaining for typesafe schema construction, supports built-in type coercion, and provides rich error context for debugging. It is designed to be extensible via custom Tests and Schemas.