console

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: May 31, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	//Header    = "\033[95m"
	//OkBlue    = "\033[94m"
	OkGreen = "\033[92m"
	//Warning   = "\033[93m"
	//Fail      = "\033[91m"
	EndColor  = "\033[0m"
	Bold      = "\033[1m"
	Underline = "\033[4m"
)

Colors

Variables

This section is empty.

Functions

func Wrap added in v0.1.4

func Wrap(msg string, color string) string

Types

type Console

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

func New

func New() *Console

func (*Console) Print added in v0.1.4

func (c *Console) Print(ask string, args ...interface{}) (int, error)

func (*Console) Prompt

func (c *Console) Prompt(ask string, args ...interface{}) bool

func (*Console) PromptInt

func (c *Console) PromptInt(ask string, max int, args ...interface{}) int

func (*Console) PromptY

func (c *Console) PromptY(ask string, args ...interface{}) bool

func (*Console) Scanln

func (c *Console) Scanln(ask string, args ...interface{}) (string, error)

func (*Console) Select added in v0.1.4

func (c *Console) Select(ask string, args ...interface{}) int

Jump to

Keyboard shortcuts

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