finds.dev← search

// the find

Oudwins/zog

★ 1,193 · Go · MIT · updated Jun 2026

Go with Zod inspired simple schema validation

Zog is a Zod-style schema validation library for Go — define schemas with method chaining, then use them to parse raw inputs (HTTP forms, JSON, env vars) into typed structs or validate existing values. It targets Go developers who miss Zod's ergonomics and want something more expressive than struct tags. Pre-v1, so expect occasional breaking changes on minor versions.

The data-provider abstraction is the right call — the same schema handles HTTP forms, JSON bytes, env vars, and raw maps without modification, which is genuinely useful. Built-in coercion is practical: parsing '42' into an int or '' into a zero value without extra glue code saves real boilerplate. Zero external dependencies keeps it clean to vendor. The benchmark numbers put it close to goplayground/validator, which is the established baseline — it's not slower than what people already use.

Still pre-1.0 with admitted breaking changes on minors, so you're signing up to read the CHANGELOG on every upgrade — the data provider API is explicitly called out as unstable, which is exactly the part you'd build integrations against. i18n coverage is sparse: English, Spanish, Japanese, Azerbaijani — that's it, you're on your own for anything else. No schema.Clone() yet (listed in the roadmap), so sharing a base schema and extending it per use case requires workarounds. The 'agent skill' feature and ZSS (Zog Schema Specification) serialization feel half-baked for now — interesting direction, but nothing you'd ship on today.

View on GitHub → Homepage ↗

// want more like this?

We dig through GitHub every week and send a few repos picked for what you actually care about — each with an honest take like this one.

Get finds in your inbox → Search again →