parsers

package
v0.44.2 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2025 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoParserFound = fmt.Errorf("no parser found for the given URL")
)

Functions

func AddPlugin added in v0.36.0

func AddPlugin(ctx context.Context, code string, name string) error

func CanHandle added in v0.30.0

func CanHandle(url string) (bool, parser.Parser)

CanHandle checks if any registered parser can handle the given URL and returns the parser if found.

func LoadPlugins

func LoadPlugins(ctx context.Context, dir string) error

func ParseWithContext

func ParseWithContext(ctx context.Context, url string) (*parser.Item, error)

Types

This section is empty.

Directories

Path Synopsis
native

Jump to

Keyboard shortcuts

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