icon

package
v0.31.0-beta1 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CrossMark = "\u274c"
	CheckMark = "\u2714\ufe0f"
)

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 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