uiutil is a go library that provides a set of helpers to improve readbility in terminal applications.
- Hidden Prompts: Provides a prompter for capturing sensitive data (passwords).
- Buffered Printer: Printer object to buffer UI components that can be flushed.
- Title Decorator: Decorator for formating titles.
Hidden Prompts
var pass string
uiutil.PromptHiddenString(&pass, "Password: ")
fmt.Println("Password is", pass)
Full source for above example is available at example/prompt/prompt.go
$ go get github.com/gosuri/uiutil/...