reflection

package
v0.0.0-...-a0d5ace Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CallMethodWithTypes

func CallMethodWithTypes(val any, name string, ins []reflect.Value, outTypes []reflect.Type) ([]reflect.Value, error)

func GetInsAndOuts

func GetInsAndOuts(typ reflect.Type) ([]reflect.Type, []reflect.Type)

func GetMethodWithTypes

func GetMethodWithTypes(val any, name string, ins []reflect.Type, outs []reflect.Type) (reflect.Value, error)

Types

type ErrInvalidMethod

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

func (ErrInvalidMethod) Error

func (e ErrInvalidMethod) Error() string

type ErrNoSuchMethod

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

func (ErrNoSuchMethod) Error

func (e ErrNoSuchMethod) Error() string

Jump to

Keyboard shortcuts

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