xreflect

package
v1.4.10 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrorType = reflect.TypeOf((*error)(nil)).Elem()

Functions

func FuncHasReturn

func FuncHasReturn(t reflect.Type) bool

func GetFunctionParamType

func GetFunctionParamType(t reflect.Type, index uint8) reflect.Type

func IsBasic

func IsBasic(t reflect.Type) bool

func IsBasicMap

func IsBasicMap(t reflect.Type) bool

IsBasicMap tests whether the given type represents a map with a key of a basic built-in type to a value of one of a basic type, a pointer to a basic type, or a slice of basic type values.

func IsBasicPointer

func IsBasicPointer(vt reflect.Type) bool

IsBasicPointer tests whether the given type is a pointer to a basic built-in type.

func IsBasicSlice

func IsBasicSlice(t reflect.Type) bool

func IsByteSlice

func IsByteSlice(t reflect.Type) bool

func IsFunction

func IsFunction(t reflect.Type) bool

func IsInterface

func IsInterface(t reflect.Type) bool

func IsNil

func IsNil(v *reflect.Value) bool

func IsNumeric

func IsNumeric(t reflect.Type) bool

func IsNumericKind

func IsNumericKind(k reflect.Kind) bool

func IsPointer

func IsPointer(t reflect.Type) bool

func IsPrimitiveKind added in v1.4.4

func IsPrimitiveKind(k reflect.Kind) bool

func IsSlice

func IsSlice(t reflect.Type) bool

func IsString

func IsString(t reflect.Type) bool

func IsTime added in v1.4.4

func IsTime(t reflect.Type) bool

func IsUnmarshaler

func IsUnmarshaler(t reflect.Type, ut reflect.Type) bool

func IsUnmarshalerMap added in v1.2.0

func IsUnmarshalerMap(t, ut reflect.Type) bool

func IsUnmarshalerSlice added in v1.2.0

func IsUnmarshalerSlice(t, ut reflect.Type) bool

func IsUnmarshalerSliceMap added in v1.2.0

func IsUnmarshalerSliceMap(t, ut reflect.Type) bool

func RootType

func RootType(vt reflect.Type) reflect.Type

RootType returns the root of the given type, unpacking nested pointer series if necessary.

Types

This section is empty.

Jump to

Keyboard shortcuts

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