utils

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2021 License: BSD-2-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidScheme = errors.New("Invalid URL scheme")
	ErrNoHost        = errors.New("No URL hostname")
)

Functions

func ParseURL added in v0.3.0

func ParseURL(rawurl string) (*url.URL, error)

func RawURLToHash

func RawURLToHash(rawurl string) (string, error)

func SplitURLToHash

func SplitURLToHash(host, path string) (string, error)

func URLToHash

func URLToHash(u *url.URL) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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