location

package
v1.0.5-0...-20c45f9 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2022 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Location

type Location struct {
	FileName string // 错误定位文件名
	Line     int    // 错误定位行
	Function string // 错误定位函数名
}

定位信息

func CreateLocation

func CreateLocation(skip int) *Location

func CreateLocationChain

func CreateLocationChain(skip int) []*Location

获取调用栈 正序

func CreateLocationChainReverse

func CreateLocationChainReverse(skip int) []*Location

获取调用栈 倒序

func (*Location) ToContent

func (l *Location) ToContent() string

Jump to

Keyboard shortcuts

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