Documentation
¶
Index ¶
- Constants
- Variables
- func GetHumanBytesString(bytes uint64) string
- func IsVerbose() bool
- func MakePrefixPrinter(printer printer, prefix string) prefixPrinter
- func MakePrinter(f *os.File) printer
- func MakePrinterOn(f *os.File, on bool) printer
- func SetTesting()
- func SetTodoOn()
- func SetVerbose(on bool)
- func Todo(f string, a ...interface{}) (err error)
- func TodoP0(f string, a ...interface{}) (err error)
- func TodoP1(f string, a ...interface{}) (err error)
- func TodoP2(f string, a ...interface{}) (err error)
- func TodoP3(f string, a ...interface{}) (err error)
- func TodoP4(f string, a ...interface{}) (err error)
- func TodoP5(f string, a ...interface{}) (err error)
- func TodoRecoverable(f string, a ...interface{}) (err error)
- type DevPrinter
- type Printer
- type Priority
Constants ¶
View Source
const ( P0 = Priority(iota) P1 P2 P3 P4 P5 )
Variables ¶
View Source
var (
SetOutput = log.SetOutput
)
Functions ¶
func GetHumanBytesString ¶
func MakePrefixPrinter ¶
func MakePrefixPrinter(printer printer, prefix string) prefixPrinter
func MakePrinter ¶
func MakePrinterOn ¶
func SetTesting ¶
func SetTesting()
func SetVerbose ¶
func SetVerbose(on bool)
TODO add compile-time determined verbosity for testing / debugging
func TodoRecoverable ¶
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
Click to show internal directories.
Click to hide internal directories.