Reflex

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CurrentCaller int = 1
	ParentCaller      = CurrentCaller + 1
)

Variables

This section is empty.

Functions

func CallField

func CallField[Self any](
	it *Self,
	name string,
	arguments []reflect.Value,
) (out []reflect.Value, throw error)

func GetCallerName

func GetCallerName(skip int, shortName bool) (out string)

func GetCurrentCallerFullName

func GetCurrentCallerFullName() (out string)

func GetCurrentCallerShortName

func GetCurrentCallerShortName() (out string)

func GetField

func GetField[Out any, Self any](it *Self, name string) (out *Out, throw error)

func GetFunctionName

func GetFunctionName[Self any](data Self, shortName bool) (out string)

func GetMap

func GetMap[Out any, In any](it *In) (out map[string]Out, throw error)

func IsNil

func IsNil(it reflect.Value) (ok bool)

func ValueOf

func ValueOf[Self any](it Self, deep bool) (out reflect.Value)

Types

This section is empty.

Jump to

Keyboard shortcuts

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