msgbox

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2024 License: AGPL-3.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Emojis = map[string]string{
	`info`:    `🔔`,
	`success`: `✅`,
	`error`:   `❌`,
	`warn`:    `💡`,
	`debug`:   `🐞`,
}
View Source
var Footer = table.Row{"Powered by webx.top"}
View Source
var StdoutColorable = Colorable(os.Stdout)

Functions

func Colorable

func Colorable(w io.Writer) bool

func Debug

func Debug(title, content string, args ...interface{})

func Error

func Error(title, content string, args ...interface{})

func Info

func Info(title, content string, args ...interface{})

func Render

func Render(title, content, typ string, args ...interface{})

func Success

func Success(title, content string, args ...interface{})

func Table

func Table(title, data interface{}, width ...int)

func Warn

func Warn(title, content string, args ...interface{})

Types

This section is empty.

Jump to

Keyboard shortcuts

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