njs_console

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ColorPrint colorType = iota
	ColorPrompt
)

Variables

This section is empty.

Functions

func GetColorType

func GetColorType(colId uint8) colorType

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{})

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