validator

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

Types

type Service

type Service struct {
	*validator.Validate
	ut.Translator
}

func (*Service) GetTrans

func (s *Service) GetTrans() ut.Translator

GetTrans 获取翻译器

func (*Service) Init

func (s *Service) Init(...services.Service) services.Service

Init 初始化

func (*Service) Translate

func (s *Service) Translate(errs validator.ValidationErrors) validator.ValidationErrorsTranslations

Translate 翻译错误

Jump to

Keyboard shortcuts

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