validate

package
v0.0.19 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AllowedSpecialCharactersForPassword = "-_*@."

Functions

func ValidateDomain

func ValidateDomain(domain string, debugMode bool) bool

ValidateDomain checks if the provided field is a valid domain.

Only valid format is: "example.com" or "sub.example.com"

func ValidateEmail

func ValidateEmail(email string) bool

func ValidateIP

func ValidateIP(ip string) bool

func ValidatePasswordRequirements

func ValidatePasswordRequirements(password string) bool

func ValidateURLSlug

func ValidateURLSlug(slug string) bool

ValidateURLSlug checks if the provided field is a valid URL slug.

Only valid format is: "example-slug" or "example_slug" or "example123"

func ValidateUUIDV7

func ValidateUUIDV7(val string) bool

Validates whether the field is a valid UUID v7

Types

This section is empty.

Jump to

Keyboard shortcuts

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