http

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Download

func Download(srcURL string, filename string, flag int, perm fs.FileMode, withProgress bool) (size int64, err error)

Download 下载资源并另存为

func NewDownloadError

func NewDownloadError(url string, err error) error

NewDownloadError 返回下载失败错误实例

Types

type DownloadError

type DownloadError struct {
	// contains filtered or unexported fields
}

DownloadError 下载失败错误

func (DownloadError) Err

func (e DownloadError) Err() error

Err 返回错误对象

func (DownloadError) Error

func (e DownloadError) Error() string

Error 返回错误字符串

func (DownloadError) URL

func (e DownloadError) URL() string

URL 返回资源URL

Jump to

Keyboard shortcuts

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