ris

package
v2.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2020 License: MIT Imports: 15 Imported by: 1

Documentation

Overview

Package ris (ris.go) : These methods are for retrieving images from url and file.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Download

func Download(r []string, c int) error

Download : Download image files from searched image URLs

Types

type Imgdata

type Imgdata struct {
	OU      string `json:"ou"`
	WebPage bool
}

Imgdata : Image URL

func DefImg

func DefImg(webpages bool) *Imgdata

DefImg : Initialize imagdata.

func (*Imgdata) ImgFromFile

func (im *Imgdata) ImgFromFile(file string) ([]string, error)

ImgFromFile : Search images from an image file

func (*Imgdata) ImgFromURL

func (im *Imgdata) ImgFromURL(searchimage string) ([]string, error)

ImgFromURL : Search images from an image URL

Jump to

Keyboard shortcuts

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