Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Download ¶
Download file from remote URL. from https://gist.github.com/albulescu/e61979cc852e4ee8f49c
func GetTerminalSize ¶ added in v2.1.1
GetTerminalSize for current console terminal.
func RenderText ¶
RenderText render text template with data
func SimpleDownload ¶
SimpleDownload simple download
Types ¶
type Downloader ¶
type Downloader struct { FileURL string SaveDir string Filename string // save file name. Progress bool // display progress info // contains filtered or unexported fields }
Downloader struct definition. refer: https://gist.github.com/albulescu/e61979cc852e4ee8f49c
Click to show internal directories.
Click to hide internal directories.