console

package
v1.5.3 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ColorPrint colorType = iota
	ColorPrompt
)
View Source
const (
	ErrorParamsEmpty errors.CodeError = iota + errors.MIN_PKG_Console
	ErrorColorIOFprintf
	ErrorColorBufWrite
	ErrorColorBufUndefined
)

Variables

This section is empty.

Functions

func GetColorType

func GetColorType(colId uint8) colorType

func IsCodeError

func IsCodeError() bool

func PadLeft

func PadLeft(str string, len int, pad string) string

func PadRight

func PadRight(str string, len int, pad string) string

func PrintTab

func PrintTab(tablLevel int, format string, args ...interface{})

@TODO : remove function deprecated: replaced by PrintTabf nolint: goprintffuncname

func PrintTabf

func PrintTabf(tablLevel int, format string, args ...interface{})

func PromptBool

func PromptBool(text string) (bool, error)

func PromptInt

func PromptInt(text string) (int64, error)

func PromptPassword

func PromptPassword(text string) (string, error)

func PromptString

func PromptString(text string) (string, error)

func PromptUrl

func PromptUrl(text string) (*url.URL, error)

func SetColor

func SetColor(col colorType, value ...int)

Types

This section is empty.

Jump to

Keyboard shortcuts

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