web

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2020 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrCorruptedImage is returned when an image type has been detected but the contents are unreadable.
	ErrCorruptedImage = errors.New("corrupted image")
)

Functions

This section is empty.

Types

type Parser

type Parser struct {
	EnableImages bool
	UserAgent    string
}

Parser implements parsing of standard HTML web pages.

func (*Parser) Init

func (p *Parser) Init() error

Init initializes this parser.

func (*Parser) Name

func (p *Parser) Name() string

Name returns the descriptive name of this parser.

func (*Parser) Parse

func (p *Parser) Parse(u *url.URL, referer *url.URL) (result parsers.ParseResult)

Parse analyzes a given URL.

Jump to

Keyboard shortcuts

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