helpers

package
v0.0.0-...-989d8f1 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2018 License: CC0-1.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FetchData

func FetchData(URL string) []byte

FetchData opens urls and return the body of request

Types

type DataFetcher

type DataFetcher struct {
	GenericDataFetcherHolder GenericDataFetcher
}

DataFetcher is a struct that holds a function that of type DataFetcher

func NewDataFetcher

func NewDataFetcher(dataFetcher GenericDataFetcher) *DataFetcher

NewDataFetcher get

func (*DataFetcher) FetchData

func (d *DataFetcher) FetchData(URL string) []byte

FetchData get data

type GenericDataFetcher

type GenericDataFetcher func(url string) []byte

GenericDataFetcher is a generic function that takes a url string and returns a bytes

Jump to

Keyboard shortcuts

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