Tools

package
v0.0.0-...-3e87f45 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2022 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Overview

* @Author: NyanCatda * @Date: 2022-03-12 23:31:49 * @LastEditTime: 2022-03-27 02:43:45 * @LastEditors: NyanCatda * @Description: * @FilePath: \Momizi\Tools\DownloadFile.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadFile

func DownloadFile(URL string, Header []string, SavePath string, RandomFileName bool, timeOut int) (string, int64, error)

*

  • @description: 下载文件
  • @param {string} URL 文件地址
  • @param {string} Header 请求头
  • @param {string} SavePath 保存路径
  • @param {int} timeOut 超时时间(秒)
  • @return {string} 文件保存路径
  • @param {bool} RandomFileName 是否生成随机文件名
  • @param {int} timeOut 超时时间(秒)
  • @return {string} 文件保存路径
  • @return {int64} 文件大小
  • @return {error} 错误信息

Types

This section is empty.

Directories

Path Synopsis
* @Author: NyanCatda * @Date: 2022-03-08 21:26:55 * @LastEditTime: 2022-03-22 23:21:11 * @LastEditors: NyanCatda * @Description: 路径检查 * @FilePath: \Momizi\Tools\File\Dir.go
* @Author: NyanCatda * @Date: 2022-03-08 21:26:55 * @LastEditTime: 2022-03-22 23:21:11 * @LastEditors: NyanCatda * @Description: 路径检查 * @FilePath: \Momizi\Tools\File\Dir.go
* @Author: NyanCatda * @Date: 2022-03-21 19:51:14 * @LastEditTime: 2022-06-17 23:41:24 * @LastEditors: NyanCatda * @Description: 终端输出颜色 * @FilePath: \Momizi\Tools\Log\Color.go
* @Author: NyanCatda * @Date: 2022-03-21 19:51:14 * @LastEditTime: 2022-06-17 23:41:24 * @LastEditors: NyanCatda * @Description: 终端输出颜色 * @FilePath: \Momizi\Tools\Log\Color.go
* @Author: NyanCatda * @Date: 2022-03-08 21:25:31 * @LastEditTime: 2022-03-08 21:31:34 * @LastEditors: NyanCatda * @Description: 配置文件模块 * @FilePath: \Momizi\Tools\ReadConfig\ReadConfig.go
* @Author: NyanCatda * @Date: 2022-03-08 21:25:31 * @LastEditTime: 2022-03-08 21:31:34 * @LastEditors: NyanCatda * @Description: 配置文件模块 * @FilePath: \Momizi\Tools\ReadConfig\ReadConfig.go
* @Author: NyanCatda * @Date: 2022-03-30 19:57:08 * @LastEditTime: 2022-04-02 22:15:24 * @LastEditors: NyanCatda * @Description: 终端控制台 * @FilePath: \Momizi\Tools\Terminal\Terminal.go
* @Author: NyanCatda * @Date: 2022-03-30 19:57:08 * @LastEditTime: 2022-04-02 22:15:24 * @LastEditors: NyanCatda * @Description: 终端控制台 * @FilePath: \Momizi\Tools\Terminal\Terminal.go
Command
* @Author: NyanCatda * @Date: 2022-03-30 19:57:58 * @LastEditTime: 2022-04-04 12:28:51 * @LastEditors: NyanCatda * @Description: 命令处理 * @FilePath: \Momizi\Tools\Terminal\Command\Command.go
* @Author: NyanCatda * @Date: 2022-03-30 19:57:58 * @LastEditTime: 2022-04-04 12:28:51 * @LastEditors: NyanCatda * @Description: 命令处理 * @FilePath: \Momizi\Tools\Terminal\Command\Command.go

Jump to

Keyboard shortcuts

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