validator

package
v1.9.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 8, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Default = New(Ru) // nolint:gochecknoglobals
)

Functions

func ValidateHostPortOrPort added in v1.4.0

func ValidateHostPortOrPort(fl validator.FieldLevel) bool

Types

type Adapter

type Adapter struct {
	// contains filtered or unexported fields
}

func New

func New(lang Language) Adapter

func (Adapter) Validate

func (a Adapter) Validate(v any) (bool, map[string]string)

func (Adapter) ValidateToError

func (a Adapter) ValidateToError(v any) error

type Language added in v1.2.1

type Language string
const (
	En Language = "en"
	Ru Language = "ru"
)

Directories

Path Synopsis
translations
en
nolint
nolint
ru
nolint
nolint

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL