reflect

package
v0.0.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyObj

func CopyObj(from any, to any, fields []string) (changed bool, err error)

func CopyObjViaYaml

func CopyObjViaYaml(to any, from any) error

CopyObjViaYaml marshal "from" to yaml data, then unMarshal data to "to".

func GetObjFieldsMap

func GetObjFieldsMap(obj any, fields []string) map[string]any

func StructName

func StructName(obj any) string

StructName used to get the struct name from the obj.

func ToGormDBMap

func ToGormDBMap(obj any, fields []string) (map[string]any, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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