coyote

package module
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2020 License: MIT Imports: 8 Imported by: 0

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

Jump to

Keyboard shortcuts

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