validation

package
v0.0.0-...-40147a1 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package validation provides simple methods for URL validation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Validation

type Validation struct {
	URL string
	// contains filtered or unexported fields
}

Validation struct instance

func New

func New(URL string) *Validation

New returns new instance of the Validation

func (Validation) Check

func (validation Validation) Check() (err error)

Check execute all the checks

func (Validation) CheckHost

func (validation Validation) CheckHost() error

CheckHost checks the host

func (Validation) CheckScheme

func (validation Validation) CheckScheme() error

CheckScheme checks the scheme

func (*Validation) Parse

func (validation *Validation) Parse() (err error)

Parse parses URL

Jump to

Keyboard shortcuts

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