validator

package
Version: v0.0.0-...-d6fea47 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseURL

func ParseURL(urlString string) (*url.URL, bool)

ParseURL parses a url string. Parsed URL is returned as the first return value. If there is an error while parsing, the second return value is false.

func ValidateHREF

func ValidateHREF(href string) bool

ValidateHREF validates a href string that should have an http or https scheme or be an absolute path.

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL