Skip to content
/ uiutil Public

uiutil is a go library that provides a set of helpers to improve readbility in terminal applications

License

Notifications You must be signed in to change notification settings

gosuri/uiutil

Repository files navigation

uiutil GoDoc Build Status

uiutil is a go library that provides a set of helpers to improve readbility in terminal applications.

Features

  • 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.

Usage Example

Hidden Prompts

var pass string
uiutil.PromptHiddenString(&pass, "Password: ")
fmt.Println("Password is", pass)

Renders: example

Full source for above example is available at example/prompt/prompt.go

Installation

$ go get github.com/gosuri/uiutil/...

About

uiutil is a go library that provides a set of helpers to improve readbility in terminal applications

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published