How do you validate your structures?

This page summarizes the projects mentioned and recommended in the original post on /r/golang

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.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • 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.

  • https://github.com/go-ozzo/ozzo-validation/blob/v3.6.0/struct.go#L61

  • validator

  • 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"` }

  • 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.

    InfluxDB logo
  • validator

    :100:Go Struct and Field validation, including Cross Field, Cross Struct, Map, Slice and Array diving

  • I like this https://github.com/go-playground/validator There are alot of predefined rule so I can validate simple struct without writing anycode. You can write your own custom validation functions as well.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Proper validation package suggestion

    5 projects | /r/golang | 7 Dec 2022
  • API completa em Golang - Parte 3

    2 projects | dev.to | 16 Dec 2023
  • Request Validations in Go REST API

    6 projects | /r/golang | 21 May 2023
  • opinions on golang's JSON processing

    2 projects | /r/golang | 15 Feb 2023
  • Best practices of validation on web apps?

    3 projects | /r/golang | 10 Feb 2023