ioutils

package module
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2021 License: BSD-3-Clause Imports: 11 Imported by: 1

README

ioutils

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadWithDir

func DownloadWithDir(ctx context.Context, srcUrl string, targetDir string, funcs ...func(length, downloaded int64)) (err error)

将文件下载存储到指定目录

func DownloadWithDirAndName

func DownloadWithDirAndName(ctx context.Context, srcUrl string, targetDir string, targetName string, funcs ...func(length, downloaded int64)) (err error)

下载文件

func DownloadWithPath

func DownloadWithPath(ctx context.Context, srcUrl string, targetPath string, funcs ...func(length, downloaded int64)) (err error)

将文件下载存储到指定路径

func Exists

func Exists(name string) bool

Exists reports whether the named file or directory exists.

func IsDir

func IsDir(dir string) bool

func PureName

func PureName(name string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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