linkparser

package module
v0.0.0-...-72864d9 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2020 License: MIT Imports: 3 Imported by: 0

README

Package for parsing HTML links

Usage

Types and functions are exported from parser.go. An example program is also available.

License

See LICENSE

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Link struct {
	Href string
	Text string
}

Link represents an HTML link (anchor tag).

func Parse

func Parse(r io.Reader) ([]Link, error)

Parses an HTML document and returns a slice of Links.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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