valid

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsDigtalOnlyString added in v0.9.1

func IsDigtalOnlyString(s string) bool

IsDigtalOnlyString returns true if the string s contains only digits.

func IsDomain

func IsDomain(s string) bool

IsDomain returns true if the string s is a valid domain.

func IsEmail

func IsEmail(s string) bool

IsEmail returns true if the string s is a valid email.

func IsHexString

func IsHexString(s string) bool

IsHexString returns true if the string s is a valid hex string.

func IsIPv4

func IsIPv4(s string) bool

IsIPv4 returns true if the string s is a valid IPv4 address.

func IsNumber

func IsNumber(s string) bool

IsNumber returns true if the string s is a valid number.

func IsSlug

func IsSlug(s string) bool

IsSlug returns true if the string s is a valid slug.

Types

type Eq

type Eq rune

func (Eq) Match added in v0.6.3

func (r Eq) Match(c rune) bool

type Range

type Range [2]rune

func (Range) Match added in v0.6.3

func (r Range) Match(c rune) bool

type V added in v0.7.0

type V interface {
	Match(c rune) bool
}

type Validator

type Validator []V

func (Validator) Match added in v0.7.0

func (v Validator) Match(s string) bool

Jump to

Keyboard shortcuts

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