creflect

package
v0.0.0-...-276cb13 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Method

type Method struct {
	Func       uintptr
	NumIn      int
	NumOut     int
	IsVariadic bool
}

Method contains part information about Method Type.

func MethodByName

func MethodByName(r reflect.Type, name string) (*Method, bool)

MethodByName returns the method with that name in the type's method set and a boolean indicating if the method was found.

For a non-interface type T or *T, the returned Method's Type and Func fields describe a function whose first argument is the receiver.

For an interface type, the returned Method's Type field gives the method signature, without a receiver, and the Func field is nil.

Jump to

Keyboard shortcuts

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