Discover Packages
github.com/Aoi-hosizora/ahlib
xruntime
package
Version:
v1.4.4
Opens a new window with list of versions in this module.
Published: Nov 5, 2020
License: MIT
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 2
Opens a new window with list of known importers.
README
README
¶
xruntime
References
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)
Expand ▾
Collapse ▴
Documentation
¶
func PrintStacks(stacks []*Stack )
PrintStacks prints a slice of stacks.
func PrintStacksRed(stacks []*Stack )
PrintStacksRed prints a slice of stacks using xcolor.Red.
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"`
}
GetStack returns a slice of Stack from runtime stacks using given skip.
GetStackWithInfo returns some information from the first runtime stack using given skip.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.