menu

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2026 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Package menu provides user interface utilities for input/output operations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Ask

func Ask(promptText string, isInputVisible bool) string

Ask prompts the user for input, optionally hiding the input for passwords.

func CheckFatalErr

func CheckFatalErr(err error, errorMessage string)

CheckFatalErr checks if an error occurred and exits with a message if so.

func PrintErr

func PrintErr(errorMessage string)

PrintErr displays an error message to the user.

func PrintErrAndExit

func PrintErrAndExit(errorMessage string)

PrintErrAndExit displays an error message and exits the application.

func PrintInfo

func PrintInfo(infoMessage string)

PrintInfo displays an informational message to the user.

Types

This section is empty.

Jump to

Keyboard shortcuts

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