Documentation ¶
Index ¶
- func CreateDataDir(dirPath string)
- func Download(url string, downloadTofileName string)
- func DownloadExtract(url string, assetName string) error
- func Exists(name string) bool
- func Extract(assetName string, downloadLocation string, extractPath string)
- func GetCurrentPath() (string, error)
- func Untar(gzStream string, dst string) error
- func Unzip(src, dest string) error
- type WriteCounter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateDataDir ¶
func CreateDataDir(dirPath string)
CreateDataDir makes a directory for the data dir of active coin's daemon at app's path context
func Download ¶
Download performs file download of the given url this method provides no feedback to the system
func DownloadExtract ¶
DownloadExtract sets up and runs the functions needed for downloading and extracting of assets
func GetCurrentPath ¶
GetCurrentPath gets the path of the go app
Types ¶
type WriteCounter ¶
type WriteCounter struct {
Total uint64
}
WriteCounter counts the number of bytes written to it
func (WriteCounter) PrintProgress ¶
func (wc WriteCounter) PrintProgress()
PrintProgress will print current status of download
Click to show internal directories.
Click to hide internal directories.