xruntime

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2020 License: MIT Imports: 8 Imported by: 2

README

xruntime

References
  • xcolor
Functions
  • type Stack struct {}
  • (s *Stack) String() string
  • GetStack(skip int) []*Stack
  • GetStackWithInfo(skip int) (stacks []*Stack, filename string, funcname string, lineIndex int, line string)
  • PrintStacks(stacks []*Stack)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrintStacks

func PrintStacks(stacks []*Stack)

PrintStacks prints a slice of stacks.

func PrintStacksRed

func PrintStacksRed(stacks []*Stack)

PrintStacksRed prints a slice of stacks using xcolor.Red.

Types

type Stack

type Stack struct {
	Index     int     `json:"index"`
	Filename  string  `json:"filename"`
	Function  string  `json:"function"`
	Pc        uintptr `json:"pc"`
	LineIndex int     `json:"line_index"`
	Line      string  `json:"line"`
}

func GetStack

func GetStack(skip int) []*Stack

GetStack returns a slice of Stack from runtime stacks using given skip.

func GetStackWithInfo

func GetStackWithInfo(skip int) (stacks []*Stack, filename string, funcname string, lineIndex int, line string)

GetStackWithInfo returns some information from the first runtime stack using given skip.

func (*Stack) String

func (s *Stack) String() string

Jump to

Keyboard shortcuts

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