htmllinkparser

package module
v0.0.0-...-6e054fe Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2019 License: MIT Imports: 3 Imported by: 0

README

GoDoc

gohtmllinkparser

Small tool to parse HTML <a> tags and categorize them written in Go. Nested links are ignored.

Documentation

Overview

Package htmllinkparser is an HTML link parser to find all links (<a> tags) within an HTML document. Nested links are ignored.

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 a link (<a href="..."> tag) in an HTML document.

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

ParseLinks will take an HTML document and parse all the links it contains into a slice of Link.

Jump to

Keyboard shortcuts

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