content

package
v0.2.9 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidScheme = errors.New("invalid schema")

ErrInvalidScheme is returned by the `content` method of the `URI` struct when it cannot read the content because its schema is not supported.

Functions

func Download

func Download(u *url.URL) ([]byte, error)

Download downloads the content of an URL, the supported schemas are: http, https and file (which is the default if url does not have a schema). For the http and https schemas it dowloads the content using a GET request.

Types

This section is empty.

Jump to

Keyboard shortcuts

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