Documentation ¶
Index ¶
- func CleanOldFiles(dir string, dur time.Duration)
- func Download(link, downloadDir string) (fileName string, err error)
- func DownloadWithProgress(downloadDir string, link string) (err error)
- func GetMyIp() (ip string, err error)
- func GetRealIp(user, host string, port int, privateFile string) (ip string, err error)
- func IsValidURL(u string) bool
- func NewProgressBar(start, total int64, symbol string) *progressBar
- func NewWriteCounter(total int64) *writeCounter
- func RunCommand(cmdStr string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanOldFiles ¶
func DownloadWithProgress ¶
func IsValidURL ¶ added in v0.1.21
func NewProgressBar ¶ added in v0.1.49
func NewWriteCounter ¶ added in v0.1.43
func NewWriteCounter(total int64) *writeCounter
func RunCommand ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.