validator

package
v0.0.0-...-8fc14ae Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2023 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.

Jump to

Keyboard shortcuts

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