mrview

package
v0.15.2 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 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

func ValidateArticle added in v0.10.0

func ValidateArticle(value string) bool

func ValidateRewriteName added in v0.15.1

func ValidateRewriteName(value string) bool

func ValidateVariable added in v0.10.0

func ValidateVariable(value string) bool

Types

type ListSorter added in v0.7.0

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

type Validator added in v0.10.0

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

type ValidatorTagNameFunc added in v0.10.0

type ValidatorTagNameFunc func(value string) bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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