tui

package
v0.0.0-...-ef44059 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Blue = color.New(color.FgBlue).SprintFunc()
View Source
var Green = color.New(color.FgGreen).SprintFunc()
View Source
var Red = color.New(color.FgRed).SprintFunc()
View Source
var Yellow = color.New(color.FgYellow).SprintFunc()

Functions

func AppHelpTemplate

func AppHelpTemplate() string

func DownloadFileWithProgressBar

func DownloadFileWithProgressBar(url string, destination string, name string) error

DownloadFileWithProgressBar downloads a file from the internet, with the URL url and saves the file in the destination file path 'destination', while showing a progress bar in the command line output. name is used to visually show to a user what kind of file is being downloaded.

func NewProgressBar

func NewProgressBar(length int, category string) *progressbar.ProgressBar

NewProgressBar creates a new dynamic progressbar instance

Types

This section is empty.

Jump to

Keyboard shortcuts

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