util

package
v0.0.0-...-f67fbbd Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanAndCheckForQuery

func CleanAndCheckForQuery(address url.URL) (url.URL, bool, error)

CleanAndCheckForQuery removes url's # references and query contents. Returns cleaned address and a boolean indicating wether query was present.

func VerifyAndParseURL

func VerifyAndParseURL(address string) (url.URL, error)

VerifyAndParseURL checks if the address is in a good format and prepends http:// if needed

Types

This section is empty.

Jump to

Keyboard shortcuts

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