tprint

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2024 License: MIT Imports: 3 Imported by: 0

README

tprint

A simple terminal printer that allows for lines to be printed (and updated) at the top of the terminal.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

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

func NewLogger

func NewLogger(separator string, topLines ...string) *Logger

NewLogger returns a pointer to a new instance of Logger, taking a separator that distinguishes the top lines from the regular lines and a variadic slice of top lines.

func (*Logger) Log

func (l *Logger) Log(message string)

func (*Logger) Stop

func (l *Logger) Stop()

func (*Logger) UpdateLine

func (l *Logger) UpdateLine(lineNumber int, content string)

Jump to

Keyboard shortcuts

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