mapper

package
v1.0.0-24 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArrMapStringToStruct

func ArrMapStringToStruct(source []map[string]interface{}, dest interface{}) error

ArrMapStringToStruct map map[string]interface{} to given interface{} using json marshal and unmarshal

func ArrStringToMapString

func ArrStringToMapString(source []string) map[string]string

func MapStringToStruct

func MapStringToStruct(source map[string]interface{}, dest interface{}) error

MapStringToStruct map map[string]interface{} to given interface{} using json marshal and unmarshal

func StructToArrMapString

func StructToArrMapString(v interface{}) ([]map[string]interface{}, error)

StructToArrMapString map v to map[string]interface{} using json marshal and unmarshal

func StructToMapString

func StructToMapString(v interface{}) (map[string]interface{}, error)

StructToMapString map v to map[string]interface{} using json marshal and unmarshal

func StructToType

func StructToType(v interface{}, dst interface{}) error

StructToType map v to given type using json marshal and unmarshal

Types

This section is empty.

Jump to

Keyboard shortcuts

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