util

package
v0.0.0-...-7e6cfdd Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2023 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsValidEmail

func IsValidEmail(email string) bool

IsValidEmail checks if the given string is a valid email address.

It returns true if the string is a valid email address, false otherwise.

Note: This function does not check if the email address is already in use.

func IsValidLogin

func IsValidLogin(login string) bool

IsValidLogin checks if the given string is a valid login.

It returns true if the string is a valid login, false otherwise.

Note: This function does not check if the login is already in use.

func IsValidPhone

func IsValidPhone(phone string) bool

IsValidPhone checks if the given string is a valid uzbek phone number. It returns true if the string is a valid phone, false otherwise.

Note: This function does not check if the phone is already in use.

func IsValidUUID

func IsValidUUID(u string) bool

IsValidUUID checks if the given string is a valid UUID v4.

It returns true if the string is a valid UUID, false otherwise.

Note: This function does not check if the UUID is already in use.

Types

This section is empty.

Jump to

Keyboard shortcuts

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