Documentation ¶
Index ¶
- func PrintErrorln(format string, a ...interface{})
- func PrintInfoln(format string, a ...interface{})
- func PrintMsgln(format string, a ...interface{})
- func PrintPlainln(format string, a ...interface{})
- func PrintWarnln(format string, a ...interface{})
- func ProgressStr(msg string, interval time.Duration) (chan<- struct{}, <-chan struct{})
- func UserOK(s string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrintInfoln ¶
func PrintInfoln(format string, a ...interface{})
PrintInfoln prints an info text
func PrintPlainln ¶
func PrintPlainln(format string, a ...interface{})
PrintPlainln prints a plain text
func ProgressStr ¶
ProgressStr shows and moves a bar '...' on the command line. It can be used to show that an activity is ongoing. The parameter 'interval' steers the refresh rate (in milli seconds). The text in 'msg' is displayed in form of '...'. The progress bar is stopped by sending an empty struct to the returned channel:
chan <- struct{}{} close(chan)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.