debug

package
v4.2.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2017 License: GPL-3.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Debug

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

Debug provides access to the debugging methods. It provides for scoped logging based on file suffix matching.

func NewDebug

func NewDebug() *Debug

NewDebug returns a cached Debug struct

func (*Debug) Dbg

func (d *Debug) Dbg(format string, a ...interface{})

Dbg only outputs if debugging is in effect

func (*Debug) DbgO

func (d *Debug) DbgO(format string, a ...interface{})

DbgO (O is override) will output regardless if debugging is in effect or not

func (*Debug) SetFilename

func (d *Debug) SetFilename(f string)

SetFilename appends given filepath to Debug's stored file list

Jump to

Keyboard shortcuts

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