http

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2024 License: MIT Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 DownloadAsBytes added in v1.4.0

func DownloadAsBytes(srcURL string) (data []byte, err error)

DownloadAsBytes 返回下载资源的原始字节切片

func IsSuccess added in v1.6.0

func IsSuccess(statusCode int) bool

IsSuccess 返回 http 请求是否成功

Types

This section is empty.

Jump to

Keyboard shortcuts

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