structure

package
v0.0.0-...-b13fe04 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2022 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertToStruct

func ConvertToStruct(Map interface{}, pointer interface{})

ConvertToStruct 从map中复制数据到结构体,按名称

func Copy

func Copy(s, ts interface{}) error

Copy 结构体映射

func MapToStruct

func MapToStruct(m interface{}, structure interface{}) error

MapToStruct map转为struct,名称、类型一致

func MergeValue

func MergeValue(source, target interface{}) error

MergeValue 将source数据覆盖target中的空数据(默认值认为是空)

func StructToMap

func StructToMap(obj interface{}) map[string]interface{}

StructToMap 结构体转map

Types

This section is empty.

Jump to

Keyboard shortcuts

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