util

package
v0.0.0-...-a99a9fd Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownLoad

func DownLoad(url string, file string) (err error)

DownLoad 下载

func ExistDir

func ExistDir(dirname string) bool

ExistDir _

func Gzip

func Gzip(src, dst string) (err error)

Gzip gzip压缩

func PrintUpdLine

func PrintUpdLine(os string, ln int, s string)

func RunCmd

func RunCmd(name string, arg ...string)

RunCmd 执行命令

func UnGzip

func UnGzip(src, dst string) (err error)

UnGzip gzip解压

Types

type DownLoadReader

type DownLoadReader struct {
	io.Reader
	// contains filtered or unexported fields
}

DownLoadReader _

func (*DownLoadReader) Read

func (r *DownLoadReader) Read(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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