fmtx

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ByCode

func ByCode(code rune) string

func CheckMark

func CheckMark() string

CheckMark green check mark

func CheckMarkColor

func CheckMarkColor(color ctc.Color) string

CheckMarkColor ✔ emoji

func ColoredBlockDanger

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

func ColoredBlockSuccess

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

func ColoredBlockWarning

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

func Danger

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

func FWriteError

func FWriteError(w io.Writer, format string, a ...any)

func FWriteInfo

func FWriteInfo(w io.Writer, format string, a ...any)

func FWriteLine

func FWriteLine(w io.Writer, format string, a ...any)

func FWriteSuccess

func FWriteSuccess(w io.Writer, format string, a ...any)

func Squish

func Squish(str string) string

func StripANSI

func StripANSI(str string) string

func Success

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

func Warning

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

Types

type Logger

type Logger struct {
	Stdout io.Writer
	Stderr io.Writer
}

func Default

func Default() *Logger

func New

func New(out io.Writer, err io.Writer) *Logger

func (Logger) WriteError

func (l Logger) WriteError(format string, a ...any)

func (Logger) WriteInfo

func (l Logger) WriteInfo(format string, a ...any)

func (Logger) WriteLine

func (l Logger) WriteLine(format string, a ...any)

func (Logger) WriteSuccess

func (l Logger) WriteSuccess(format string, a ...any)

Jump to

Keyboard shortcuts

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