cmd

package
v0.0.0-...-5fa1441 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2018 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadFile

func DownloadFile(lr loginRes, filepath string, url string) error

DownloadFile downloads file into ...

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func GetStringInBetween

func GetStringInBetween(str string, start string, end string) (result string)

GetStringInBetween ...

Types

type DownloadResult

type DownloadResult struct {
	FileName, FileSize, Result, Error string
	Attempt                           int
	Duration                          time.Duration
}

DownloadResult struct for structuring download results once files are successfully downloaded or failed.

Jump to

Keyboard shortcuts

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