Skip to content

itsknk/coyote

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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