validator

:100:Go Struct and Field validation, including Cross Field, Cross Struct, Map, Slice and Array diving (by go-playground)

Stats

Basic validator repo stats
9
7,640
6.3
10 days ago

go-playground/validator is an open source project licensed under MIT License which is an OSI approved license.

Validator Alternatives

Similar projects and alternatives to validator

  • GitHub repo go-formatter

    A curated list of awesome Go frameworks, libraries and software

  • GitHub repo prometheus

    The Prometheus monitoring system and time series database.

  • GitHub repo viper

    Go configuration with fangs

  • GitHub repo swag

    Automatically generate RESTful API documentation with Swagger 2.0 for Go.

  • GitHub repo Gin

    Gin is a HTTP web framework written in Go (Golang). It features a Martini-like API with much better performance -- up to 40 times faster. If you need smashing performance, get yourself some Gin.

  • GitHub repo Grafana

    The open and composable observability and data visualization platform. Visualize metrics, logs, and traces from multiple sources like Prometheus, Loki, Elasticsearch, InfluxDB, Postgres and many more.

  • GitHub repo Gitea

    Git with a cup of tea, painless self-hosted git service

  • GitHub repo Echo

    High performance, minimalist Go web framework

  • GitHub repo grpc-go

    The Go language implementation of gRPC. HTTP/2 based RPC

  • GitHub repo jaeger

    CNCF Jaeger, a Distributed Tracing Platform

  • GitHub repo Testify

    A toolkit with common assertions and mocks that plays nicely with the standard library

  • GitHub repo Fiber

    ⚡️ Express inspired web framework written in Go

  • GitHub repo zap

    Blazing fast, structured, leveled logging in Go.

  • GitHub repo ctop

    Top-like interface for container metrics

  • GitHub repo Redis

    Type-safe Redis client for Golang (by go-redis)

  • GitHub repo casbin

    An authorization library that supports access control models like ACL, RBAC, ABAC in Golang

  • GitHub repo gomock

    GoMock is a mocking framework for the Go programming language. (by golang)

  • GitHub repo pgx

    PostgreSQL driver and toolkit for Go

  • GitHub repo Task

    A task runner / simpler Make alternative written in Go

  • GitHub repo go-simple-mail

    Golang package for send email. Support keep alive connection, TLS and SSL. Easy for bulk SMTP.

NOTE: The number of mentions on this list indicates mentions on common posts. Hence, a higher number means a better validator alternative or higher similarity.

Posts

Posts where validator has been mentioned. We have used some of these posts to build our list of alternatives and similar projects - the last one was on 2021-05-01.
  • Golang web development
    reddit.com/r/golang | 2021-05-01
    Validator for struct validation. Do this before saving models, before interacting with user input.
  • Go, NATS, gRPC and PostgreSQL clean architecture microservice with monitoring and tracing 👋
    dev.to | 2021-03-29
    For REST http i used echo, another good popular choice on my opinion is gin, and swag for generate RESTful API documentation. Create email handler accept requests, start tracing span, validate input using validator and call usecase method:
  • 📖 Build a RESTful API on Go: Fiber, PostgreSQL, JWT and Swagger docs in isolated Docker containers
    dev.to | 2021-03-22
    👌 I use go-playground/validator v10 for release this feature.
  • Build user authentication in Golang with JWT and mongoDB
    dev.to | 2021-02-03
    Now let's move on to getting the bcrypt package, validator package and the gin package which will be used for password management, struct validation and route management respectively. In our controllers/userController.go file, insert the following code
  • Build an API endpoint with GOlang , Gin & mongoDB
    dev.to | 2021-01-20
    Now we need to create a new validator object which will be used to corroborate request payloads
  • How to securely store passwords?
    dev.to | 2021-01-16
    And let’s say we don’t allow it to contain any kind of special characters, so here I’m gonna use the alphanum tag, which is already provided by the validator package. It basically means that this field should contain ASCII alphanumeric characters only.
  • Newtypes, constructing and validation
    reddit.com/r/golang | 2020-12-29
    You could do that, but most of the time you want to validate a whole struct containing user supplied data, this can be done with: https://github.com/go-playground/validator
  • Go gRPC Clean architecture microservice with Prometheus, Grafana monitoring and Jaeger opentracing ⚡️
    dev.to | 2020-12-27
    Then we usually have to validate request input, for errors gRPC has packages status and codes I found good practice to parse and log errors in handler layer, here i use ParseGRPCErrStatusCode method, which parse err and returns matched gRPC code. Validator is good solution for validation.
  • Gopher Gold #10 - Wed Sep 09 2020
    dev.to | 2020-09-09
    go-playground/validator (Go): 💯Go Struct and Field validation, including Cross Field, Cross Struct, Map, Slice and Array diving