decorate

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var B = fc.New(fc.Bold).SprintfFunc()

bold/italic

View Source
var Blue = fc.New(fc.FgBlue).SprintfFunc()
View Source
var BlueBg = fc.New(fc.BgBlue, fc.FgBlack).SprintfFunc()
View Source
var Cyan = fc.New(fc.FgCyan).SprintfFunc()
View Source
var Error = fc.New(fc.FgRed, fc.Italic).SprintFunc()
View Source
var ErrorBg = fc.New(fc.BgRed, fc.FgBlack, fc.Italic, fc.Faint).SprintFunc()
View Source
var F = fc.New(fc.Faint).SprintfFunc()
View Source
var Gray = fc.New(fc.FgHiBlack).SprintfFunc()
View Source
var Green = fc.New(fc.FgGreen).SprintfFunc()
View Source
var GreenBg = fc.New(fc.BgGreen, fc.FgBlack).SprintfFunc()
View Source
var I = fc.New(fc.Italic).SprintfFunc()
View Source
var Info = fc.New(fc.FgWhite).SprintfFunc()

special

View Source
var Red = fc.New(fc.FgRed).SprintfFunc()
View Source
var U = fc.New(fc.Underline).SprintfFunc()
View Source
var Warn = fc.New(fc.FgYellow, fc.Italic).SprintFunc()
View Source
var WarnBg = fc.New(fc.BgYellow, fc.FgBlack, fc.Italic, fc.Faint).SprintFunc()
View Source
var Yellow = fc.New(fc.FgYellow).SprintfFunc()

fg

Functions

func ApplyConfig

func ApplyConfig(enableEmoji bool)

func ApplyTheme

func ApplyTheme(theme string)

func EchoError

func EchoError(content string, a ...any)

func EchoFatal

func EchoFatal(content string, a ...any)

func EchoFine

func EchoFine(content string, a ...any)

func EchoOkay

func EchoOkay(content string, a ...any)

func EchoRun

func EchoRun(content string, a ...any)

func EchoWarn

func EchoWarn(content string, a ...any)

func EchoWeakNotice added in v0.0.4

func EchoWeakNotice(content string, a ...any)

func EchoWrong

func EchoWrong(content string, a ...any)

func Emo

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

emojify sprintf

Types

type ColorStringFunc

type ColorStringFunc func(a ...interface{}) string

Theme

var Text, Title, Nation, Line, Pron, Property, Idx, Addi, Para,
	CollinsPara, Eg, EgPref, EgEn, EgCh,
	Star, Rank ColorStringFunc

Jump to

Keyboard shortcuts

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