Documentation
¶
Index ¶
- func EqualFold(s, t string) bool
- func IsValidEmail(email string) bool
- func MapNotContains[K comparable, V any](m map[K]V, e []K) bool
- func MapOnlyContains[K comparable, V any](m map[K]V, e []K) bool
- func NewValidationError(format string, a ...any) error
- func SliceNotContains[S ~[]E, V ~[]E, E comparable](s S, v V) bool
- func SliceOnlyContains[S ~[]E, V ~[]E, E comparable](s S, v V) bool
- type ValidationError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsValidEmail ¶
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 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
Click to show internal directories.
Click to hide internal directories.