ui

package
v0.0.0-...-32d88a2 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2024 License: MIT Imports: 6 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 Continue

func Continue(header string, err error) (shouldContinue bool)

func IsVerbose

func IsVerbose() bool

func Retry

func Retry(header string, err error) (tryAgain bool)

func SetTesting

func SetTesting()

func SetTodoOn

func SetTodoOn()

func SetVerbose

func SetVerbose()

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 {
	ProdPrinter
	Caller(i int, vs ...interface{})
	FunctionName(skip int)
}

func Debug

func Debug() DevPrinter

func DebugAllowCommit

func DebugAllowCommit() DevPrinter

func DebugBatsTestBody

func DebugBatsTestBody() DevPrinter

func Log

func Log() DevPrinter

type Priority

type Priority int

func (Priority) String

func (i Priority) String() string

type ProdPrinter

type ProdPrinter interface {
	Print(v ...interface{}) error
	Printf(format string, v ...interface{}) error
}

func Err

func Err() ProdPrinter

func Out

func Out() ProdPrinter

Jump to

Keyboard shortcuts

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