Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DetectFileContentType ¶
DetectFileContentType detects the file type by reading MIME type information of the file content.
func DownloadImage ¶
DownloadImage downloads the image from the internet and saves it into a temporary file.
func IsValidUrl ¶
IsValidUrl tests a string to determine if it is a well-structured url or not.
Types ¶
type ProgressIndicator ¶
type ProgressIndicator struct { StopMsg string // contains filtered or unexported fields }
ProgressIndicator initializes the progress indicator.
func NewSpinner ¶ added in v1.4.6
func NewSpinner(msg string, d time.Duration) *ProgressIndicator
NewSpinner instantiates a new progress indicator.
func (*ProgressIndicator) RestoreCursor ¶
func (pi *ProgressIndicator) RestoreCursor()
RestoreCursor restores back the cursor visibility.
func (*ProgressIndicator) Start ¶
func (pi *ProgressIndicator) Start()
Start starts the progress indicator.
func (*ProgressIndicator) Stop ¶
func (pi *ProgressIndicator) Stop()
Stop stops the progress indicator.
Click to show internal directories.
Click to hide internal directories.