console

package
v1.15.1 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ColorPrint colorType = iota
	ColorPrompt
)
View Source
const (
	ErrorParamEmpty liberr.CodeError = iota + liberr.MinPkgConsole
	ErrorColorIOFprintf
	ErrorColorBufWrite
	ErrorColorBufUndefined
)

Variables

This section is empty.

Functions

func GetColorType

func GetColorType(colId uint8) colorType

func PadCenter added in v1.10.4

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

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