ui

package
v0.0.0-...-791c77c Latest Latest
Warning

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

Go to latest
Published: May 11, 2025 License: MIT Imports: 10 Imported by: 4

Documentation

Index

Constants

View Source
const (
	P0 = Priority(iota)
	P1
	P2
	P3
	P4
	P5
)

Variables

View Source
var (
	SetOutput = log.SetOutput
)

Functions

func GetHumanBytesString

func GetHumanBytesString(bytes uint64) string

func IsVerbose

func IsVerbose() bool

func MakePrefixPrinter

func MakePrefixPrinter(printer printer, prefix string) prefixPrinter

func MakePrinter

func MakePrinter(f *os.File) printer

func MakePrinterOn

func MakePrinterOn(f *os.File, on bool) printer

func SetTesting

func SetTesting()

func SetTodoOn

func SetTodoOn()

func SetVerbose

func SetVerbose(on bool)

TODO add compile-time determined verbosity for testing / debugging

func Todo

func Todo(f string, a ...interface{}) (err error)

func TodoP0

func TodoP0(f string, a ...interface{}) (err error)

func TodoP1

func TodoP1(f string, a ...interface{}) (err error)

func TodoP2

func TodoP2(f string, a ...interface{}) (err error)

func TodoP3

func TodoP3(f string, a ...interface{}) (err error)

func TodoP4

func TodoP4(f string, a ...interface{}) (err error)

func TodoP5

func TodoP5(f string, a ...interface{}) (err error)

func TodoRecoverable

func TodoRecoverable(f string, a ...interface{}) (err error)

Types

type DevPrinter

type DevPrinter interface {
	Printer
	Caller(i int, vs ...any)
	FunctionName(skip int)
	Stack(skip, count int)
}

func Debug

func Debug() DevPrinter

func DebugAllowCommit

func DebugAllowCommit() DevPrinter

func DebugBatsTestBody

func DebugBatsTestBody() DevPrinter

func Log

func Log() DevPrinter

type Printer

type Printer = interfaces.Printer

func Err

func Err() Printer

func Out

func Out() Printer

type Priority

type Priority int

func (Priority) String

func (i Priority) String() string

Jump to

Keyboard shortcuts

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