fetcher

package
v0.0.0-...-ea498fe Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2017 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// DefaultFetcher is the default fetcher implementation
	DefaultFetcher = defaultFetcher{}
)

Functions

func Fetch

func Fetch(URL string) ([]byte, error)

Fetch an URL or local file

func FetchReadCloser

func FetchReadCloser(URL string) (io.ReadCloser, error)

FetchReadCloser fetches an URL or local file

Types

type Fetcher

type Fetcher interface {
	Fetch(URL string) ([]byte, error)
}

Fetcher is capable of fetching an URL

Jump to

Keyboard shortcuts

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