download

package
v0.0.0-...-b87ce86 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2021 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLastModifiedTime

func GetLastModifiedTime(url string) (time.Time, error)

func ToFile

func ToFile(url string, dir string, allowCached bool) (string, error)

ToFile downloads url and saves it under the directory dir. allowCached indicates whether is allowed to use an existing file if the resource on the network is not available.

func ToMemory

func ToMemory(url string) ([]byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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