multiline

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ClearLine  = code(esc + "2K\r")
	MoveUp     = code(esc + "1F")
	MoveDown   = code(esc + "1E")
	ShowCursor = code(esc + "?25h")
	HideCursor = code(esc + "?25l")
)

Functions

This section is empty.

Types

type LineLogger

type LineLogger struct {
	// contains filtered or unexported fields
}

func (*LineLogger) Printf

func (l *LineLogger) Printf(format string, a ...any)

func (*LineLogger) SetPrefix

func (l *LineLogger) SetPrefix(pref string)

type MultiLogger

type MultiLogger struct {
	// contains filtered or unexported fields
}

func New

func New(count int, w io.Writer) MultiLogger

func (*MultiLogger) PrintUntilDone

func (ml *MultiLogger) PrintUntilDone(index int, printStr string, done <-chan bool, millis int)

func (*MultiLogger) Printf

func (ml *MultiLogger) Printf(index int, format string, a ...any)

func (*MultiLogger) SetPrefix

func (ml *MultiLogger) SetPrefix(index int, pref string)

Jump to

Keyboard shortcuts

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