debugging

package
v0.0.0-...-0a51557 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Btox

func Btox(data []byte, sep string) string

func IsDebuggingActive

func IsDebuggingActive() bool

func QualifiedTypeName

func QualifiedTypeName(anything any) string

func StructName

func StructName() string

func TypeName

func TypeName(anything any) string

func VerbForType

func VerbForType(value any, printVerb rune) rune

func Xtob

func Xtob(hexString string) ([]byte, error)

Types

type DebugContentPrinter

type DebugContentPrinter interface {
	PrintDebugContents(indent int, file io.Writer, _ids []uintptr)
}

type DebugContents

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

func NewDebugContents

func NewDebugContents(debuggable Debuggable, contents ...string) *DebugContents

func (*DebugContents) AddDebugContents

func (d *DebugContents) AddDebugContents(debuggable Debuggable, contents ...string)

func (*DebugContents) AddExtraPrinters

func (d *DebugContents) AddExtraPrinters(printers ...DebugContentPrinter)

func (*DebugContents) Format

func (d *DebugContents) Format(s fmt.State, v rune)

func (*DebugContents) LeafNameOrFallback

func (d *DebugContents) LeafNameOrFallback() string

func (*DebugContents) PrintDebugContents

func (d *DebugContents) PrintDebugContents(indent int, file io.Writer, _ids []uintptr)

func (*DebugContents) StructHeader

func (d *DebugContents) StructHeader() []byte

type DebugPrinter

type DebugPrinter = func(format string, a ...any)

func CreateDebugPrinter

func CreateDebugPrinter() DebugPrinter

type Debuggable

type Debuggable interface {
	GetDebugAttr(attr string) any
}

type DefaultRFormatter

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

func NewDefaultRFormatter

func NewDefaultRFormatter(extraPrinters ...DebugContentPrinter) *DefaultRFormatter

func (*DefaultRFormatter) Format

func (d *DefaultRFormatter) Format(s fmt.State, v rune)

func (*DefaultRFormatter) String

func (d *DefaultRFormatter) String() string

func (*DefaultRFormatter) StructHeader

func (d *DefaultRFormatter) StructHeader() []byte

type LoggingFormatter

type LoggingFormatter struct {
}

TODO: implement

Jump to

Keyboard shortcuts

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