utils

package
v0.0.0-...-bd6e288 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FetchPage

func FetchPage(href, fetcher string) string

FetchPage fetches the content of a web page given its URL.

href: The URL of the web page to fetch.

func HandleErr

func HandleErr(err error, logStmt string) bool

Print error to screen and write to error log file

func Logger

func Logger(logType string, stmts ...interface{})
func ShuffleLinks[T Link](links []T)

ShuffleLinks shuffles the order of links.

Types

type Link interface {
	soup.Root | string
}

Jump to

Keyboard shortcuts

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