utils

package
v0.0.143 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEntriesFromTXTFiles added in v0.0.83

func GetEntriesFromTXTFiles(paths []string) ([]string, error)

GetEntriesFromTXTFiles returns a list of entries from a list of text files

func IsStaticAsset added in v0.0.83

func IsStaticAsset(url string) bool

IsStaticAsset returns true if the URL is a static asset, false otherwise

func IsTrailingSlashRedirect added in v0.0.97

func IsTrailingSlashRedirect(from, to string) bool

IsTrailingSlashRedirect checks if the redirect is just adding a trailing slash

func ParseResponseCodes added in v0.0.120

func ParseResponseCodes(responseCodes string) (map[int]bool, error)

ParseResponseCodes parses a comma-separated or range-based string of response codes (e.g., "200,301,404-410") and returns a map of valid codes.

Types

This section is empty.

Jump to

Keyboard shortcuts

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