validator

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 License: BSD-3-Clause, BSD-3-Clause Imports: 1 Imported by: 0

README

Validator

It is a package that provides functionality to perform simple validation

import

import (
    "github.com/start-codex/utils/validator"
)

Validate Email

email := validator.Email("test@user.com")

if email.IsValid() {
    fmt.Println("Email is valid")
} else {
    fmt.Println("Email is invalid")
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Email

type Email string

func (Email) IsValid

func (e Email) IsValid() bool

func (Email) String

func (e Email) String() string

Jump to

Keyboard shortcuts

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