validation

package
v1.0.31 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidDomain = errors.New("invalid domain name")

ErrInvalidDomain is the error message send if the domain name is invalid

Functions

func ValidDomain

func ValidDomain(domain string, allowWildcard bool) error

ValidDomain returns an error if the domain is not valid.

func ValidDomainListAndFormat

func ValidDomainListAndFormat(domains *[]string, allowWildcard bool) error

ValidDomainListAndFormat formats the domains list and check if there are invalid domain names

Types

This section is empty.

Jump to

Keyboard shortcuts

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