download

package
v0.0.0-...-6a1c4ee Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFile

func GetFile(file, dstDir string) (string, error)

GetFile downloads a file. Destination directory will be created if it does not exist. It returns the path to the downloaded file. If the provided file is not a URL, it checks if it exists locally

func GetFiles

func GetFiles(files []string, dstDir string) ([]string, error)

GetFiles downloads a list of files. Destination directory will be created if it does not exist. It returns the paths to the downloaded files. If the provided file is not a URL, it checks if it exists locally

func RemoteReader

func RemoteReader(path string) (io.ReadCloser, error)

RemoteReader returns a reader to a remote file.

Types

This section is empty.

Jump to

Keyboard shortcuts

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