trace

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2021 License: MIT Imports: 2 Imported by: 1

Documentation

Overview

Package trace provide utility to get stack trace.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Location

type Location struct {
	File     string
	Line     int
	Function string
}

Location of execution

func Get

func Get(skip, max int) []Location

Get return list of location of stack trace for calling function.

max tell Get how deep the stack trace is. skip tell Get to skip some trace, 0 is where Get is called.

func (Location) String

func (l Location) String() string

String representation of Location

Jump to

Keyboard shortcuts

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