console

package
v2.0.19 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Errorln

func Errorln(format string, a ...any) error

func GetUserChoice

func GetUserChoice(context string, items []string) (int, string, error)

func GetUserInput

func GetUserInput(label string, value string) (string, error)

func GetUserInputWithValidation

func GetUserInputWithValidation(label string, value string, validate func(string) error) (string, error)

func MakeDirnameAvailableValidator added in v2.0.15

func MakeDirnameAvailableValidator(parentDir string) func(string) error

func PrintSeparateln

func PrintSeparateln(format string, a ...any)

func Println

func Println(format string, a ...any)

Types

type UserInputOptionsStruct added in v2.0.15

type UserInputOptionsStruct struct {
	Label   string
	Default string `default:""`
}

Jump to

Keyboard shortcuts

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