reflect

package
v0.0.0-...-27647ab Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2023 License: BSD-3-Clause Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddrHashEq

func AddrHashEq[T any]() bt.HashEqImpl[T]

func AddressOf

func AddressOf(v any) uintptr

func Any

func Any() reflect.Type

func As

func As[T any](rv reflect.Value) T

func AsType

func AsType(v any) reflect.Type

func AsValue

func AsValue(v any) reflect.Value

func Bool

func Bool() reflect.Type

func Bytes

func Bytes() reflect.Type

func Complex128

func Complex128() reflect.Type

func Complex64

func Complex64() reflect.Type

func Duration

func Duration() reflect.Type

func EmptyString

func EmptyString() reflect.Value

func False

func False() reflect.Value

func Fields

func Fields(ty reflect.Type) []reflect.StructField

func Float32

func Float32() reflect.Type

func Float64

func Float64() reflect.Type

func Int

func Int() reflect.Type

func Int16

func Int16() reflect.Type

func Int32

func Int32() reflect.Type

func Int64

func Int64() reflect.Type

func Int8

func Int8() reflect.Type

func Invalid

func Invalid() (v reflect.Value)

func IsEmpty

func IsEmpty[V any](v V) bool

func IsEmptyValue

func IsEmptyValue(v reflect.Value) bool

func IsNotEmpty

func IsNotEmpty[V any](v V) bool

func IsNotEmptyValue

func IsNotEmptyValue(v reflect.Value) bool

func IsNumericType

func IsNumericType(ty reflect.Type) bool

func IsPrimitiveType

func IsPrimitiveType(ty reflect.Type) bool

func NilBytes

func NilBytes() reflect.Value

func PtrHashEq

func PtrHashEq[T any]() bt.HashEqImpl[*T]

func SafeIsNil

func SafeIsNil(v reflect.Value) bool

func String

func String() reflect.Type

func Time

func Time() reflect.Type

func True

func True() reflect.Value

func TypeArgs

func TypeArgs(ty reflect.Type) []reflect.Type

func TypeName

func TypeName(ty reflect.Type) string

func TypeOf

func TypeOf[T any]() reflect.Type

func Uint

func Uint() reflect.Type

func Uint16

func Uint16() reflect.Type

func Uint32

func Uint32() reflect.Type

func Uint64

func Uint64() reflect.Type

func Uint8

func Uint8() reflect.Type

func Uintptr

func Uintptr() reflect.Type

func UnwrapPointerType

func UnwrapPointerType(ty reflect.Type) reflect.Type

func UnwrapPointerValue

func UnwrapPointerValue(v reflect.Value) (reflect.Value, bool)

func Zero

func Zero() reflect.Value

func ZeroFor

func ZeroFor(ty reflect.Type) reflect.Value

func ZeroOf

func ZeroOf[T any]() reflect.Value

func ZeroTime

func ZeroTime() reflect.Value

Types

type ArgsProvider

type ArgsProvider func(fn any, args ...any) []any

Directories

Path Synopsis
Scalar
Scalar

Jump to

Keyboard shortcuts

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