safe_reflectv2

package
v1.2.37 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Invalid reflect.Kind = iota
	Bool
	Int
	Int8
	Int16
	Int32
	Int64
	Uint
	Uint8
	Uint16
	Uint32
	Uint64
	Uintptr
	Float32
	Float64
	Complex64
	Complex128
	Array
	Chan
	Func
	Interface
	Map
	Pointer
	Slice
	String
	Struct
	UnsafePointer
)

Variables

This section is empty.

Functions

func IndirectRV

func IndirectRV(rv reflect.Value) reflect.Value

func Set

func Set(src, dst any)

func SetLike

func SetLike(src, dst any)

Types

type Type

type Type struct {
	reflect.Type
}

func FromValue

func FromValue(v Value) Type

func FromWrap

func FromWrap(rt reflect.Type) Type

type Value

type Value struct {
	reflect.Value
	// contains filtered or unexported fields
}

func Direct

func Direct(i any) Value

func Indirect

func Indirect(i any) Value

func Wrap

func Wrap(rv reflect.Value) Value

func Wrap2

func Wrap2(rv reflect.Value, i any) Value

func (Value) SetI

func (v Value) SetI(i any)

func (Value) SetILike

func (v Value) SetILike(i any)

Jump to

Keyboard shortcuts

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