parser

package
v0.0.0-...-c6def84 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2022 License: MIT Imports: 3 Imported by: 1

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 contains the "href" attribute and the texts inside a HTML anchor tag <a>.

func Parse

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

Parse takes an HTML document as an argument and return all the valid links inside.

Jump to

Keyboard shortcuts

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