validation

package
v1.14.10 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2026 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package validation provides tools to validate input.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainsForbiddenWords added in v1.8.2

func ContainsForbiddenWords(value string) bool

func ValidateValueByRule

func ValidateValueByRule(value, rule string) bool

func ValidateValueByRules

func ValidateValueByRules(value string, rules []string) bool

Types

type Error added in v1.8.1

type Error struct {
	Message string
	BaseErr error
}

Error represents, that validation was not passed.

func (Error) Error added in v1.8.1

func (e Error) Error() string

func (Error) Unwrap added in v1.8.1

func (e Error) Unwrap() error

Jump to

Keyboard shortcuts

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