reflect

package
v0.0.0-...-25ef478 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2023 License: Apache-2.0, BSD-2-Clause Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FuncPostCallback

func FuncPostCallback(fnc interface{}, callback func()) interface{}

FuncPostCallback returns an interface to a function that calls 'callback' after calling 'fnc'.

func FuncPreCallback

func FuncPreCallback(fnc interface{}, callback func()) interface{}

FuncPreCallback returns an interface to a function that calls 'callback' before calling 'fnc'.

func GetCaller

func GetCaller(skipFrames int) runtime.Frame

Types

type CallStack

type CallStack struct {
	// contains filtered or unexported fields
}

func GetExternalCallers

func GetExternalCallers(packageName string, skipCallers int) (callers *CallStack)

func (*CallStack) ExternalEntryPoint

func (callStack *CallStack) ExternalEntryPoint() string

func (*CallStack) String

func (callStack *CallStack) String() string

type Callers

type Callers []runtime.Frame

func GetCallers

func GetCallers(skipCallers int) (callers Callers)

func (Callers) Skip

func (callers Callers) Skip(n int) Callers

func (Callers) String

func (callers Callers) String() string

Jump to

Keyboard shortcuts

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