validator

package
v0.0.0-...-5d28317 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IValidate

type IValidate interface {
	Struct(payloadStruct interface{}, lang *langCtx.Lang) *resPkg.Status
	ErrorFormatter(err error, lang *langCtx.Lang) *resPkg.Status
}

type Validate

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

func New

func New(langDefault language.Tag) *Validate

func (*Validate) ErrorFormatter

func (v *Validate) ErrorFormatter(err error, lang *langCtx.Lang) *resPkg.Status

func (*Validate) Struct

func (v *Validate) Struct(payloadStruct interface{}, lang *langCtx.Lang) *resPkg.Status

func (*Validate) Translator

func (v *Validate) Translator(lang language.Tag) ut.Translator

Directories

Path Synopsis
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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