ui

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AskYesNo

func AskYesNo(prompt string, defaultYes bool) bool

func PrintMessage

func PrintMessage(message string, messageType MessageType)

PrintMessage prints a message to the user.

func ReadUserInput

func ReadUserInput() string

ReadUserInput reads a line of input from the user.

Types

type MessageType

type MessageType int
const (
	MessageTypeInfo MessageType = iota
	MessageTypeWarning
	MessageTypeError
	MessageTypeNotice
	MessageTypeSuccess
)

Jump to

Keyboard shortcuts

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