runtime

package
v0.0.0-...-2692626 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Location

func Location() string

Location 获取代码位置

Types

type CodeLocation

type CodeLocation struct {
	FileName string //文件名
	FuncName string //函数名
	Line     int    //行数
}

CodeLocation 代码位置

func GetCodeLocation

func GetCodeLocation(skip int) *CodeLocation

GetCodeLocation 获取代码位置

参数:
	skip:The argument skip is the number of stack frames to ascend, with 0 identifying the caller of Caller.

func (*CodeLocation) Error

func (p *CodeLocation) Error() string

Error 错误信息

func (*CodeLocation) String

func (p *CodeLocation) String() string

String 错误信息

Jump to

Keyboard shortcuts

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