utils

package
v0.1.62 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanOldFiles

func CleanOldFiles(dir string, dur time.Duration)

func Download

func Download(link, downloadDir string) (fileName string, err error)

func DownloadWithProgress

func DownloadWithProgress(downloadDir string, link string) (err error)

func GetMyIp

func GetMyIp() (ip string, err error)

func GetRealIp

func GetRealIp(user, host string, port int, privateFile string) (ip string, err error)

func IsValidURL added in v0.1.21

func IsValidURL(u string) bool

func NewProgressBar added in v0.1.49

func NewProgressBar(start, total int64, symbol string) *progressBar

func NewWriteCounter added in v0.1.43

func NewWriteCounter(total int64) *writeCounter

func RunCommand

func RunCommand(cmdStr string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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