runtimeext

package
v5.30.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2024 License: Apache-2.0, MIT Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Frame

type Frame struct {
	runtime.Frame
}

Frame wraps a runtime.Frame to provide some helper functions while still allowing access to the original runtime.Frame

func Stack

func Stack() Frame

Stack returns a stack Frame

func StackLevel

func StackLevel(skip int) (f Frame)

StackLevel returns a stack Frame skipping the number of supplied frames. This is primarily used by other libraries who use this package internally as the additional.

func (Frame) File

func (f Frame) File() string

File is the runtime.Frame.File stripped down to just the filename

func (Frame) Function

func (f Frame) Function() string

Function is the runtime.Frame.Function stripped down to just the function name

func (Frame) Line

func (f Frame) Line() int

Line is the line of the runtime.Frame and exposed for convenience.

Jump to

Keyboard shortcuts

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