consoleoutput

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Opt

type Opt interface {
	// contains filtered or unexported methods
}

func WithNewline

func WithNewline(newline bool) Opt

func WithPrefix

func WithPrefix(prefix string) Opt

type Output

type Output interface {
	io.Writer

	Printf(format string, args ...any)
	OKf(format string, args ...any)
	Errorf(format string, args ...any)
}

func New

func New(writer io.Writer, opts ...Opt) Output

Jump to

Keyboard shortcuts

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