parser

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package parser defines an interface used to parse HTML and extract links

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface interface {
	// Parse parses the document and returns the urls and parse errors
	Parse(ctx context.Context, url string, body io.Reader) (urls []string, errs []error)
}

Interface parses HTML and returns the urls from anchor href attributes

Directories

Path Synopsis
Package htmlparser defines a parser.Interface that parses HTML and returns the urls from anchor href attributes
Package htmlparser defines a parser.Interface that parses HTML and returns the urls from anchor href attributes
Package mockparser defines a parser.Interface that returns dummy urls for a given input, and is used in tests
Package mockparser defines a parser.Interface that returns dummy urls for a given input, and is used in tests

Jump to

Keyboard shortcuts

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