reflects

package
v0.0.27 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Copy

func Copy(s reflect.Value) reflect.Value

Copy 拷贝

func DeepCopy

func DeepCopy[T any](src T) T

DeepCopy 深拷贝

func GetPointer

func GetPointer[T any](src T) reflect.Value

GetPointer 获取指针

func GetPtrUnExportFiled

func GetPtrUnExportFiled(s reflect.Value, filedIndex int) reflect.Value

GetPtrUnExportFiled 获取指针类型的未导出字段

func SetPtrUnExportFiled

func SetPtrUnExportFiled(s reflect.Value, filedIndex int, val reflect.Value)

SetPtrUnExportFiled 设置指针类型的未导出字段

Types

This section is empty.

Jump to

Keyboard shortcuts

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