ui

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorMsg

func ErrorMsg(err error, msg string, params ...string)

ErrorMsg prints out an error message

func InfoMsg

func InfoMsg(msg string, params ...string)

InfoMsg prints out a info message

func PromptList

func PromptList(msg, def string, options []string) int

PromptList prompts the user with a list

func PromptMsg

func PromptMsg(msg string) (string, error)

PromptMsg prompts the user for an input message

func PromptYN added in v1.4.0

func PromptYN(msg string, params ...string) bool

PromptYN prompts yes/no question

func SuccessMsg

func SuccessMsg(msg string, params ...string)

SuccessMsg prints out a success message

func WarningMsg

func WarningMsg(err error, msg string, params ...string)

WarningMsg prints out a warning message

Types

This section is empty.

Jump to

Keyboard shortcuts

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