Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality. Learn more →
Top 23 Go Validation Projects
-
validator
:100:Go Struct and Field validation, including Cross Field, Cross Struct, Map, Slice and Array diving
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
-
protoc-gen-validate
Protocol Buffer Validation - Being replaced by github.com/bufbuild/protovalidate
-
ozzo-validation
An idiomatic Go (golang) validation package. Supports configurable and extensible validation rules (validators) using normal language constructs instead of error-prone struct tags.
-
filetype
Fast, dependency-free Go package to infer binary file types based on the magic numbers header signature
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
-
Package govalidator
Validate Golang request data with simple rules. Highly inspired by Laravel's request validation. (by thedevsaddam)
-
Validate
⚔ Go package for data validation and filtering. support Map, Struct, Form data. Go通用的数据验证与过滤库,使用简单,内置大部分常用验证、过滤器,支持自定义验证器、自定义消息、字段翻译。
-
encoding
Go package containing implementations of efficient encoding, decoding, and validation APIs.
-
jsonschema
JSONSchema (draft 2020-12, draft 2019-09, draft-7, draft-6, draft-4) Validation using Go (by santhosh-tekuri)
-
graphql-go-tools
GraphQL Router / API Gateway framework written in Golang, focussing on correctness, extensibility, and high-performance. Supports Federation v1 & v2, Subscriptions & more.
-
valgo
Valgo is a type-safe, expressive, and extensible validator library for Golang. Supports localization and is built with generics.
-
truemail-go
🚀 Configurable Golang 📨 email validator/verifier. Verify email via Regex, DNS, SMTP and even more. Be sure that email address valid and exists.
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
Go uses zero values to provide sensible default values. It's a design choice. With a quick Google you'll find several libraries such as https://github.com/go-playground/validator or https://github.com/asaskevich/govalidator. I use validator whenever I need to ensure any JSON I unmarshalled is correct.
Project mention: Show HN: Workout Tracker – self-hosted, single binary web application | news.ycombinator.com | 2024-02-29Where `kube.cue` sets reasonable defaults (e.g. image is /). The "cluster" runs on a mini PC in my basement, and I have a small Digital Ocean VM with a static IP acting as an ingress (networking via Tailscale). Backups to cloud storage with restic, alerting/monitoring with Prometheus/Grafana, Caddy/Tailscale for local ingress.
[1] https://www.talos.dev/
[2] https://cuelang.org/
go-ozzo/ozzo-validation
Project mention: Shrink to Secure: Kubernetes and Secure Compact Containers | news.ycombinator.com | 2023-07-02
If you want to validate your resources against the schema of the resources (mind you also crds) you can use kubeconform.
Project mention: Scaling GraphQL Subscriptions in Go with Epoll and Event Driven Architecture | dev.to | 2024-03-04If you're interested in the full implementation of the resolver, you can find it on GitHub.
Go Validation related posts
- API completa em Golang - Parte 7
- API completa em Golang - Parte 3
- Is there any equivalent to pydantic, serde, etc?
- Lua is a viable alternative for JSON
- Show HN: Config-file-validator – CLI tool to validate all your config files
- API validation in Gin: Ensuring Data Integrity in Your API
- Yet another validator 0.9.5
-
A note from our sponsor - InfluxDB
www.influxdata.com | 26 Apr 2024
Index
What are some of the best open-source Validation projects in Go? This list will help you:
Project | Stars | |
---|---|---|
1 | validator | 15,562 |
2 | govalidator | 5,926 |
3 | cue | 4,754 |
4 | protoc-gen-validate | 3,642 |
5 | ozzo-validation | 3,566 |
6 | gatekeeper | 3,465 |
7 | filetype | 2,013 |
8 | kubeconform | 1,923 |
9 | kpt | 1,631 |
10 | Package govalidator | 1,284 |
11 | go-proto-validators | 1,069 |
12 | email-verifier | 1,070 |
13 | Validate | 1,007 |
14 | encoding | 962 |
15 | jsonschema | 832 |
16 | checkmail | 691 |
17 | graphql-go-tools | 635 |
18 | valgo | 353 |
19 | validating | 213 |
20 | grimoire | 161 |
21 | checkdigit | 111 |
22 | jio | 96 |
23 | truemail-go | 85 |
Sponsored