links

package
v0.0.0-...-4489971 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package links provides functions to fetch pages via GET requests and extract links from them.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Extract

func Extract(body io.ReadCloser, url *url.URL) ([]string, error)

Extract extracts the links in the HTML document contained in the supplied response body.

func GetBody

func GetBody(url string) (*url.URL, io.ReadCloser, error)

GetBody makes an HTTP GET request to the specified URL and returns the request URL and body of the response.

Types

This section is empty.

Jump to

Keyboard shortcuts

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