links

package
v0.0.0-...-1c1543c Latest Latest
Warning

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

Go to latest
Published: May 4, 2020 License: CC0-1.0 Imports: 6 Imported by: 0

Documentation

Overview

Package links provides link related utilities.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Extract

func Extract(doc *html.Node) []link.L

Extract the links (such as URLs in code comments in a code element) and hyperlinks (anchors) in the argument node's tree, that is, the tree with it as the root node.

func KeepExternal

func KeepExternal(vl []link.L) []link.L

KeepExternal filters out both the internal and invalid links from the argument slice returning a slice of any remaining external valid links using the same underlying array as the argument slice.

Types

This section is empty.

Jump to

Keyboard shortcuts

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