github.com/go-playground/validator/v10

Validator

Package validator implements value validations for structs and individual fields based on tags.

96

Decision Signals

Health score 96/100, confidence 100/100.

Excellent
Maintenance 95
Adoption 100
Security 92
Maturity 100
Developer DX 91
Confidence 100

Install

go get github.com/go-playground/validator/v10

Package Data

updated May 28, 2026
Latest versionv10.30.2
Imported by24.1K packages
Stars20.0K
Forks1.4K
Last activity1 day ago
Latest releasev10.30.2 (1 months ago)
LicenseMIT
Known vuln records0

API Surface

83 symbols
SymbolKindSynopsis
CustomTypeFunc Type type CustomTypeFunc func(field reflect.Value) interface{}
FieldError Type type FieldError interface{ ... }
FieldError.ActualTag Method ActualTag func() string
FieldError.Error Method Error func() string
FieldError.Field Method Field func() string
FieldError.Kind Method Kind func() reflect.Kind
FieldError.Namespace Method Namespace func() string
FieldError.Param Method Param func() string
FieldError.StructField Method StructField func() string
FieldError.StructNamespace Method StructNamespace func() string
FieldError.Tag Method Tag func() string
FieldError.Translate Method Translate func(ut ut.Translator) string

Similar Packages

Go Validation Libraries

#1 govalidator

Package govalidator is package of validators and sanitizers for strings, structs and collections.

Go Validation Libraries 6.2K stars 4.7K imported-by 100% confidence
92

#2 validate

Package validate is a generic go data validate, filtering library.

Go Validation Libraries 1.1K stars 0 imported-by 80% confidence
84

#3 go-proto-validators

Generate message validators from .proto annotations.

Go Validation Libraries 1.1K stars 1.0K imported-by 95% confidence
73

#4 v4

Package validation provides configurable and extensible rules for validating data of various types.

Go Validation Libraries 4.1K stars 2.3K imported-by 95% confidence
73

#5 validation

Package validation provides methods for validating parameter value using reflection.

Go Validation Libraries 0 stars 77.0K imported-by 75% confidence
69