Documentation ¶
Index ¶
- Constants
- func Blue(format string, v ...any)
- func BlueStr(format string, v ...any) string
- func Brown(format string, v ...any)
- func BrownStr(format string, v ...any) string
- func Cyan(format string, v ...any)
- func CyanStr(format string, v ...any) string
- func Gray(format string, v ...any)
- func GrayStr(format string, v ...any) string
- func Green(format string, v ...any)
- func GreenStr(format string, v ...any) string
- func Magenta(format string, v ...any)
- func MagentaStr(format string, v ...any) string
- func Orange(format string, v ...any)
- func OrangeStr(format string, v ...any) string
- func Pink(format string, v ...any)
- func PinkStr(format string, v ...any) string
- func PrintError(format string, v ...any)
- func PrintFatal(format string, v ...any)
- func PrintInfo(format string, v ...any)
- func PrintSuccess(format string, v ...any)
- func PrintWarning(format string, v ...any)
- func PrintlnByDefault(content string)
- func Red(format string, v ...any)
- func RedStr(format string, v ...any) string
- func Rose(format string, v ...any)
- func RoseStr(format string, v ...any) string
- func White(format string, v ...any)
- func WhiteStr(format string, v ...any) string
- func Yellow(format string, v ...any)
- func YellowStr(format string, v ...any) string
- type BOption
- func WithAlign(position lipgloss.Position) BOption
- func WithBackground(lightColor, darkColor string) BOption
- func WithBold(bold bool) BOption
- func WithForeground(color string) BOption
- func WithHeight(height int) BOption
- func WithItalic(italic bool) BOption
- func WithPadding(i ...int) BOption
- func WithWidth(width int) BOption
- type BlockPrinter
- type FadeColors
Constants ¶
Variables ¶
This section is empty.
Functions ¶
func MagentaStr ¶
func PrintError ¶
func PrintFatal ¶
func PrintSuccess ¶
func PrintWarning ¶
func PrintlnByDefault ¶
func PrintlnByDefault(content string)
Types ¶
type BOption ¶
type BOption func(bp *BlockPrinter)
func WithBackground ¶
func WithForeground ¶
func WithHeight ¶
func WithItalic ¶
func WithPadding ¶
type BlockPrinter ¶
func NewBlockPrinter ¶
func NewBlockPrinter(content string, opts ...BOption) (bp *BlockPrinter)
func (*BlockPrinter) Println ¶
func (that *BlockPrinter) Println()
func (*BlockPrinter) String ¶
func (that *BlockPrinter) String() string
type FadeColors ¶
type FadeColors struct { ColorA *colorful.Color ColorB *colorful.Color // contains filtered or unexported fields }
func NewFadeColors ¶
func NewFadeColors(content any) *FadeColors
func (*FadeColors) Println ¶
func (that *FadeColors) Println()
func (*FadeColors) SetDefaultRange ¶
func (that *FadeColors) SetDefaultRange()
func (*FadeColors) SetRange ¶
func (that *FadeColors) SetRange(colorA, colorB string)
func (*FadeColors) String ¶
func (that *FadeColors) String() string
Click to show internal directories.
Click to hide internal directories.