print

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Message

func Message(message string, color Color, a ...interface{})

Message prints a message with a color

Corresponding colors:

  • Error: red

  • Warning: yellow

  • Info: blue

  • Success: green

Types

type Color

type Color string
const (
	Error    Color = "red"
	Warning  Color = "yellow"
	Info     Color = "blue"
	Success  Color = "green"
	Optional Color = "optional"
	None     Color = "none"
)

Jump to

Keyboard shortcuts

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