fancy

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2017 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Error

func Error(a interface{}) string

Error formatter

func HiddenPrompt

func HiddenPrompt() (string, error)

HiddenPrompt with a >

func Info

func Info(a interface{}) string

Info formatter

func Prompt

func Prompt() (string, error)

Prompt with fancy "> "

func Question

func Question(a interface{}) string

Question formatter

func Success

func Success(a interface{}) string

Success formatter

func Tip

func Tip(a interface{}) string

Tip formatter

Types

type Options

type Options struct {
	// contains filtered or unexported fields
}

Options selector

func (*Options) Add

func (o *Options) Add(name, description string)

Add option

func (*Options) Ask

func (o *Options) Ask(q string) (string, error)

Ask for options printing a question

func (*Options) List

func (o *Options) List() string

List options

Jump to

Keyboard shortcuts

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