Documentation ¶
Index ¶
- type Debugger
- func (d *Debugger) Close()
- func (d *Debugger) GetDebugMode() bool
- func (d *Debugger) Print(v ...interface{})
- func (d *Debugger) Printf(format string, v ...interface{})
- func (d *Debugger) Println(v ...interface{})
- func (d *Debugger) Start()
- func (d *Debugger) ToggleDebugMode(active bool)
- func (d *Debugger) Wait()
- func (d *Debugger) Write(p []byte) (n int, err error)
- type PrintMessage
- type PrintMessager
- type PrintfMessage
- type PrintlnMessage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Debugger ¶
type Debugger struct {
// contains filtered or unexported fields
}
Debugger is a struct that provides a way to print debug messages.
func NewDebugger ¶
NewDebugger is a function that creates a new debugger.
Parameters:
- logger: The logger to use.
Returns:
- *Debugger: The new debugger.
func (*Debugger) GetDebugMode ¶ added in v0.3.13
GetDebugMode is a function that returns the debug mode.
Returns:
- bool: The debug mode.
func (*Debugger) Print ¶
func (d *Debugger) Print(v ...interface{})
Print is a function that prints text.
Parameters:
- v: The values to print.
func (*Debugger) Printf ¶
Printf is a function that prints formatted text.
Parameters:
- format: The format string.
- v: The values to print.
func (*Debugger) Println ¶
func (d *Debugger) Println(v ...interface{})
Println is a function that prints a line.
Parameters:
- v: The values to print.
func (*Debugger) ToggleDebugMode ¶
ToggleDebugMode is a function that toggles the debug mode.
Parameters:
- active: The flag to set the debug mode.
type PrintMessage ¶
type PrintMessage struct {
// contains filtered or unexported fields
}
PrintMessage is a struct that represents a message to print.
func NewPrintMessage ¶
func NewPrintMessage(v []any) *PrintMessage
NewPrintMessage is a function that creates a new PrintMessage.
Parameters:
- v: The values to print.
Returns:
- *PrintMessage: The new PrintMessage.
type PrintMessager ¶ added in v0.3.11
type PrintMessager interface { }
PrintMessager is an interface that defines a message to print.
type PrintfMessage ¶ added in v0.3.11
type PrintfMessage struct {
// contains filtered or unexported fields
}
PrintfMessage is a struct that represents a message to print formatted text.
func NewPrintfMessage ¶ added in v0.3.11
func NewPrintfMessage(format string, v []any) *PrintfMessage
NewPrintfMessage is a function that creates a new PrintfMessage.
Parameters:
- format: The format string.
- v: The values to print.
Returns:
- *PrintfMessage: The new PrintfMessage.
type PrintlnMessage ¶ added in v0.3.11
type PrintlnMessage struct {
// contains filtered or unexported fields
}
PrintlnMessage is a struct that represents a message to print a line.
func NewPrintlnMessage ¶ added in v0.3.11
func NewPrintlnMessage(v []any) *PrintlnMessage
NewPrintlnMessage is a function that creates a new PrintlnMessage.
Parameters:
- v: The values to print.
Returns:
- *PrintlnMessage: The new PrintlnMessage.