parsers

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2023 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ParseResult

type ParseResult struct {
	// Ignored is set to true when a parser can't do anything with the given URL and wants to pass it off to another parser.
	Ignored bool

	// Error is set by the parser when it runs into a technical error.
	Error error

	// UserError is set by the parser when it wants to notify channel users about an error.
	UserError error

	// Information contains the generated URL information.
	Information []map[string]interface{}

	// FollowURL is set by a parser whenever the framework should restart the parsing process with a new URL.
	// This can happen if a URL is actually an alias for another, more processable or direct URL.
	FollowURL *url.URL
}

ParseResult contains the general structure for parsers to return information about URLs.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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