runtime

package
v0.0.0-...-27647ab Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2023 License: BSD-3-Clause Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFuncName

func GetFuncName(v reflect.Value) string

func GetPc

func GetPc() uintptr

func MaxProcs

func MaxProcs() int

func TypeName

func TypeName(ty reflect.Type) string

Types

type ParsedGenericName

type ParsedGenericName struct {
	ParsedName
	Args []ParsedGenericName `json:"args,omitempty"`
}

func ParseGenericName

func ParseGenericName(name string) (ParsedGenericName, error)

func ParseTypeName

func ParseTypeName(ty reflect.Type) (ParsedGenericName, error)

func (ParsedGenericName) String

func (n ParsedGenericName) String() string

type ParsedName

type ParsedName struct {
	Pkg string `json:"pkg,omitempty"`
	Obj string `json:"obj,omitempty"`
}

func GetCaller

func GetCaller(ofs int) ParsedName

func ParseName

func ParseName(name string) ParsedName

func (ParsedName) String

func (n ParsedName) String() string

type SortedNames

type SortedNames struct {
	Builtin  []string `json:"builtin,omitempty"`
	External []string `json:"external,omitempty"`
	Internal []string `json:"internal,omitempty"`
}

func SortNames

func SortNames(pfx string, ns []string) (ret SortedNames)

type StackFrame

type StackFrame struct {
	Pc   uintptr
	Name string

	File string
	Line int
}

func GetStackFrame

func GetStackFrame(ofs int) StackFrame

func GetStackTrace

func GetStackTrace(n, ofs int) []StackFrame

func (StackFrame) ParsedName

func (sf StackFrame) ParsedName() ParsedName

Jump to

Keyboard shortcuts

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