console

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Error

func Error(a ...any)

func NoColor

func NoColor(noColor bool)

NoColor disables color output if noColor is true.

func PrintResponse

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

PrintResponse prints a formatted response message with color.

func Printf

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

Printf is a convenient helper function to print with colors.

func Println

func Println(a ...any)

Println is a convenient helper function to print.

func PrintrRequest

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

PrintrRequest prints a formatted request message with color.

func Prompt

func Prompt(message string) (string, error)

Prompt asks the user for input with a given message and returns the input as a string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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