link

package
v0.0.0-...-4df7676 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Link struct {
	Href  string
	Texts []string
}

Link represents the content of a hypermedia link from a HTML file

func Parse

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

Parse file to fetch links

func (*Link) GetText

func (l *Link) GetText() string

GetText by concatenating all texts from link child nodes

func (*Link) String

func (l *Link) String() string

Jump to

Keyboard shortcuts

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