normalizer

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2026 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureScheme added in v0.7.0

func EnsureScheme(rawURL string) string

EnsureScheme prepends "http://" to a URL if it has no scheme. This is intended for seed URLs entered by users (e.g. "blog.axe-net.fr").

func Normalize

func Normalize(rawURL string) (string, error)

Normalize normalizes a URL string for deduplication.

func Resolve

func Resolve(base, ref string) (string, error)

Resolve resolves a relative URL against a base URL and normalizes the result.

Types

This section is empty.

Jump to

Keyboard shortcuts

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