types

package
v0.0.0-...-7144ed9 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EqualFold

func EqualFold(s, t string) bool

func IsValidEmail

func IsValidEmail(email string) bool

IsValidEmail validates if a string is a valid email format Returns true for valid email format, false otherwise

func MapNotContains

func MapNotContains[K comparable, V any](m map[K]V, e []K) bool

func MapOnlyContains

func MapOnlyContains[K comparable, V any](m map[K]V, e []K) bool

func NewValidationError

func NewValidationError(format string, a ...any) error

func SliceNotContains

func SliceNotContains[S ~[]E, V ~[]E, E comparable](s S, v V) bool

func SliceOnlyContains

func SliceOnlyContains[S ~[]E, V ~[]E, E comparable](s S, v V) bool

Types

type ValidationError

type ValidationError struct {
	Msg string
}

func (ValidationError) Error

func (e ValidationError) Error() string

Jump to

Keyboard shortcuts

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