mrview

package
v0.28.2 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateAnyNotSpaceSymbol added in v0.10.0

func ValidateAnyNotSpaceSymbol(value string) bool

ValidateAnyNotSpaceSymbol - comment func.

func ValidateArticle added in v0.10.0

func ValidateArticle(value string) bool

ValidateArticle - comment func.

func ValidateDoubleSize added in v0.19.0

func ValidateDoubleSize(value string) bool

ValidateDoubleSize - comment func.

func ValidateRewriteName added in v0.15.1

func ValidateRewriteName(value string) bool

ValidateRewriteName - comment func.

func ValidateTripleSize added in v0.20.0

func ValidateTripleSize(value string) bool

ValidateTripleSize - comment func.

func ValidateVariable added in v0.10.0

func ValidateVariable(value string) bool

ValidateVariable - comment func.

Types

type ListSorter added in v0.7.0

type ListSorter interface {
	CheckField(name string) bool
	DefaultSort() mrtype.SortParams
}

ListSorter - интерфейс для проверки полей, которые могут участвовать в сортировке.

type Validator added in v0.10.0

type Validator interface {
	Register(tagName string, fn func(value string) bool) error
	Validate(ctx context.Context, structure any) error
}

Validator - интерфейс валидации полей структур, с возможностью регистрации необходимых тегов, которые можно заранее привязывать к полям структур.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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