Documentation ¶
Overview ¶
Package debugger holds definition of Debugger.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Debugger ¶
type Debugger interface { // Print prints provided info. Print(info string) // IsOn tells whether debugging mode is activated. IsOn() bool // TurnOn turns on debugging mode. TurnOn() // TurnOff turns off debugging mode. TurnOff() // Reset resets debugging mode to init state. Reset(isOn bool) }
Debugger represents debugger.
type DebuggerService ¶
type DebuggerService struct {
// contains filtered or unexported fields
}
DebuggerService is utility tool for debugging
func New ¶
func New(isOn bool) *DebuggerService
func (*DebuggerService) IsOn ¶
func (d *DebuggerService) IsOn() bool
IsOn tells whether debugging mode is activated.
func (*DebuggerService) Print ¶
func (d *DebuggerService) Print(info string)
Print prints provided info.
func (*DebuggerService) Reset ¶
func (d *DebuggerService) Reset(isOn bool)
Reset resets debugging mode to init state.
func (*DebuggerService) TurnOff ¶
func (d *DebuggerService) TurnOff()
TurnOff turns off debugging mode.
Click to show internal directories.
Click to hide internal directories.