ozzo-validation
validator
Our great sponsors
ozzo-validation | validator | |
---|---|---|
7 | 1 | |
2,708 | 0 | |
3.9% | - | |
0.0 | 1.1 | |
4 months ago | 12 months ago | |
Go | Go | |
MIT License | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
ozzo-validation
-
Gin vs Echo framework
Gin comes with built-in "validation", while Echo recommends the same validator. I am also not a fan of magic struct tags, so I would probably prefer either writing my own or using something like ozzo.
-
What type of software do you write at your workplace?
Other packages of note: https://github.com/uber-go/zap https://github.com/go-ozzo/ozzo-validation
-
is there any package to generate validation code for struct instead of using reflect (tags)?
Does https://github.com/go-ozzo/ozzo-validation meet your requirements?
-
How do you validate your structures?
Have you looked at this library?
https://github.com/go-ozzo/ozzo-validation/blob/v3.6.0/struct.go#L61
- Are we still using struct tags for input validation?
validator
-
How do you validate your structures?
I'm looking for a data validator and I don't like this approach where validation details are a part of tags: `validation:magic,42`. I've written my own validator but it's more like an example rather than complete implementation and it's not my particular task right now and I will be really happy to find something like that: ``go type User struct { Name stringjson:"name" Email stringjson:"email" Message stringjson:"message"` }
What are some alternatives?
validator - :100:Go Struct and Field validation, including Cross Field, Cross Struct, Map, Slice and Array diving
govalidator - [Go] Package of validators and sanitizers for strings, numerics, slices and structs
Password validator library for Go - Flexible and customizable password validation
Validate - ⚔ Go package for data validation and filtering. support Map, Struct, Form data. Go通用的数据验证与过滤库,使用简单,内置大部分常用验证、过滤器,支持自定义验证器、自定义消息、字段翻译。
postcode - Small Golang package for validating postal codes
govalid - Struct validation using tags
protoc-gen-validate - protoc plugin to generate polyglot message validators
jsonschema - JSONSchema (draft 2020-12, draft 2019-09, draft-7, draft-6, draft-4) Validation using Go
ozzo-routing - An extremely fast Go (golang) HTTP router that supports regular expression route matching. Comes with full support for building RESTful APIs.
qcr - Queued Custom Resources
gqlgen - go generate based graphql server library
Handy Go utilities - GO Golang Utilities and helpers like validators and string formatters