Documentation ¶
Index ¶
- func CopyObj(from interface{}, to interface{}, fields []string) (changed bool, err error)
- func CopyObjViaYaml(to interface{}, from interface{}) error
- func GetObjFieldsMap(obj interface{}, fields []string) map[string]interface{}
- func ToGormDBMap(obj interface{}, fields []string) (map[string]interface{}, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyObjViaYaml ¶
func CopyObjViaYaml(to interface{}, from interface{}) error
CopyObjViaYaml marshal "from" to yaml data, then unMarshal data to "to"
func GetObjFieldsMap ¶
func ToGormDBMap ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.