reflect

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2024 License: Apache-2.0 Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopySameFields

func CopySameFields(src, dst interface{}) error

CopySameFields 复制结构体中相同的字段相同类型的属性值

func DeepCopy

func DeepCopy(src interface{}) interface{}

DeepCopy 深拷贝 源和目标需要是同类型的

func NonZeroField

func NonZeroField(value interface{}) ([]string, error)

NonZeroField 返回结构体的非零字段

func NonZeroFieldValue

func NonZeroFieldValue(value interface{}) (map[string]interface{}, error)

NonZeroFieldValue 返回结构体的非零字段的值

Types

This section is empty.

Jump to

Keyboard shortcuts

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