debug

package
v0.0.0-...-85505a6 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: MIT Imports: 2 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Debug = false

Debug is a debug mode flag for an entire program.

Functions

This section is empty.

Types

type Info

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

Info represents metadata of a call.

func NewGoInfo

func NewGoInfo(skip int) *Info

NewGoInfo creates a Info of debug information about Go source.

func NewInfo

func NewInfo(file string, lineNumber, linePosition int, source string) *Info

NewInfo creates a Info.

func (*Info) Lines

func (i *Info) Lines() string

Lines returns string representation of Info which can be printed on stdout or stderr as is.

Jump to

Keyboard shortcuts

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