mooonhttp

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: May 24, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package mooonhttp Wrote by yijian on 2024/03/09

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadFile

func DownloadFile(url, localFilepath string) (int, error)

DownloadFile 通过 http 下载文件,本实现基于 AI 生成 url 文件的链接 localFilepath 本地文件路径 第一个返回值为 http 的响应代码,如果其值为 0 表示还没取得 http 的响应代码,是否出错应看第二个返回值是否为 nil

Types

This section is empty.

Jump to

Keyboard shortcuts

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