valid

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2021 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 IsIP

func IsIP(s string) bool

func IsIPv4

func IsIPv4(s string) bool

func IsIPv6

func IsIPv6(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) In

func (r Eq) In(c rune) bool

type FromTo

type FromTo [2]rune

func (FromTo) In

func (r FromTo) In(c rune) bool

type Range

type Range interface {
	In(c rune) bool
}

type Validator

type Validator []Range

func (Validator) Is

func (v Validator) Is(s string) bool

Jump to

Keyboard shortcuts

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