link

package
v0.0.0-...-56ad08b Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsEndAnchor

func IsEndAnchor(tk html.Token) bool

IsEndAnchor returns true if an html.Token is a closing href. </a>

func IsStartAnchor

func IsStartAnchor(tk html.Token) bool

IsStartAnchor returns true if an html.Token is a starting href. <a href="example.net">

Types

type Link struct {
	Link string
	Text string
}

Link is an href in the HTML file.

func Parse

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

Parse parses an io.Reader containing raw HTML an extract the links.

func (Link) String

func (l Link) String() string

Stringer for Link struct.

Jump to

Keyboard shortcuts

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