valid

package
v0.8.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsDomain

func IsDomain(s string) bool

func IsEmail

func IsEmail(s string) bool

func IsHexString

func IsHexString(s string) bool

func IsIPv4

func IsIPv4(s string) bool

func IsNumber

func IsNumber(s string) bool

func IsSlug

func IsSlug(s string) bool

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