README

coyote

Go Reference Build Status

Downloading files made easy.

coyote is a library written in go that helps in downloading files in an elegant manner.

Install

If you don't have go installed, you can download it here.

$ go get github.com/itsknk/coyote

After installing you can import it just like everyother library.

import (
    "github.com/itsknk/coyote"
)

Usage

package main
import (
	"github.com/itsknk/coyote"
)
func main() {
	url := []string{
		"https://images-na.ssl-images-amazon.com/images/I/81P1kr0i2RL._RI_.jpg",
		"https://www.telegraph.co.uk/content/dam/film/Entourage/entouragetv-xlarge.jpg",
	}

	filename := []string{
		"entourage_one.png",
		"entourage_two.png",
	}
	downloader := coyote.Downloader{}
	downloader.Coyote(url, filename)
}

Contributing

  • Fork it and then do the changes or else download the zip file, test to make sure nothing is going sideways.
  • Make a pull request with a detailed explanation.

License

MIT

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Downloader

type Downloader struct {
	Client fasthttp.Client
	Debug  bool
}

func (*Downloader) Coyote

func (d *Downloader) Coyote(urls []string, fileNames []string) error

Source Files