debug

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2019 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Open

func Open(flag, tag string)

func SavePath

func SavePath(p string)

func Stack

func Stack(calldepth int) []byte

Stack gets the call stack

func Tag

func Tag(key string, data ...interface{})

Types

type CallStack

type CallStack struct {
	Func   string
	File   string
	LineNo int
}

func Callstack

func Callstack(skipFrames int) CallStack

type DebugTag

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

func NewDebugTag

func NewDebugTag(options ...func(*DebugTag)) *DebugTag

func (*DebugTag) GetTagData

func (d *DebugTag) GetTagData() []DebugTagData

func (*DebugTag) Printer

func (d *DebugTag) Printer()

func (*DebugTag) Save

func (d *DebugTag) Save(dir string, format string, prefix ...string) error

func (*DebugTag) SaveToDay

func (d *DebugTag) SaveToDay(dir string, prefix ...string) error

func (*DebugTag) SaveToHour

func (d *DebugTag) SaveToHour(dir string, prefix ...string) error

func (*DebugTag) SaveToMinute

func (d *DebugTag) SaveToMinute(dir string, prefix ...string) error

func (*DebugTag) SaveToSecond

func (d *DebugTag) SaveToSecond(dir string, prefix ...string) error

func (*DebugTag) Start

func (d *DebugTag) Start()

func (*DebugTag) Tag

func (d *DebugTag) Tag(key string, data ...interface{})

type DebugTagData

type DebugTagData struct {
	Key     string
	Data    interface{}
	Stack   CallStack
	Current string
}

Jump to

Keyboard shortcuts

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