debug

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RenderVariable

func RenderVariable(instance any, config *VariableConfig) string

RenderVariable returns the text representation of variable.

Types

type StackFrame

type StackFrame uintptr

func (StackFrame) FileLine

func (s StackFrame) FileLine() (string, int)

func (StackFrame) Name

func (s StackFrame) Name() string

func (StackFrame) PC

func (s StackFrame) PC() uintptr

func (StackFrame) String

func (s StackFrame) String() string

type StackTrace

type StackTrace []uintptr

func GetStackTrace

func GetStackTrace(skip int) *StackTrace

func (*StackTrace) String

func (s *StackTrace) String() string

type VariableConfig

type VariableConfig struct {
	Indent     string
	UseNewLine bool
	MaxDepth   int
	MaxItems   int
	Converter  func(value any) any
}

Jump to

Keyboard shortcuts

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