helpers

package
v0.0.30 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanURL added in v0.0.16

func CleanURL(u string) string

CleanURL removes tracking parameters from the given URL.

func CreateUniqueFilename

func CreateUniqueFilename(url *url.URL) string

CreateUniqueFilename creates a unique filename for the given URL.

func FixRelativePath

func FixRelativePath(url *url.URL, path string) string

FixRelativePath converts a relative path to an absolute path for the given URL.

func IsURLValid added in v0.0.16

func IsURLValid(u string) bool

IsURLValid checks if the given URL is valid.

func Normalize

func Normalize(input string) string

Normalize cleans up the extracted string, removing HTML tags, decoding HTML entities, and trimming whitespace.

Types

This section is empty.

Jump to

Keyboard shortcuts

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