reflect

package
v0.1.89 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IterateArray

func IterateArray(entity any) ([]any, error)

func IterateFields

func IterateFields(entity any) (map[string]any, error)

IterateFields 遍历属性

func IterateFuncs

func IterateFuncs(entity any) (map[string]FuncInfo, error)

func IterateMap

func IterateMap(entity any) ([]any, []any, error)

IterateMap 返回[]key,[]value,error

func SetField

func SetField(entity any, fieldName string, newVal any) error

Types

type FuncInfo

type FuncInfo struct {
	Name        string
	InputTypes  []reflect.Type
	OutputTypes []reflect.Type
	Result      []any
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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