icon

package
v0.45.2 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrorSymbol = "\u274c"
)

Variables

This section is empty.

Functions

func Emoji

func Emoji(emoji string, fallback string) string

Emoji accepts two arguments, emoji sequence code, and fallback string, for the cases when emoji isn't supported. If the running program's operating system target isn't Windows, then a function returns emoji, in other case fall back string.

func ErrorPrefix

func ErrorPrefix() string

ErrorPrefix returns cross mark emoji prefix or default "Error:"

func InfoPrefix

func InfoPrefix() string

InfoPrefix returns an emoji indicating an info message

func SuccessPrefix

func SuccessPrefix() string

SuccessPrefix returns check mark emoji prefix

Types

This section is empty.

Jump to

Keyboard shortcuts

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