mapx

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2022 License: MIT Imports: 16 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BindToDto

func BindToDto(srcMap map[string]interface{}, dto interface{}) error

func CopyFields

func CopyFields(srcMap map[string]interface{}, keys interface{}) map[string]interface{}

@var string[]|string keys

func CopyFieldsFromStringMapString

func CopyFieldsFromStringMapString(srcMap map[string]string, keys interface{}) map[string]string

@var string[]|string keys

func CopyFieldsToStringMapString

func CopyFieldsToStringMapString(srcMap map[string]interface{}, keys interface{}) map[string]string

@var string[]|string keys

func DeepMerge

func DeepMerge(src, dst interface{}) (interface{}, error)

func FromRequestParam

func FromRequestParam(srcMap map[string]interface{}, rules ...interface{}) map[string]interface{}

@var string[]|string rules

func FromXml

func FromXml(buf []byte) map[string]string

func NewStructKeyFieldOption

func NewStructKeyFieldOption(mappings [][2]string) *structKeyFieldOption

func NewSturctExcludeKeysOption

func NewSturctExcludeKeysOption(keys interface{}) *structKeysOption

@var string[]|string keys

func NewSturctIncludeKeysOption

func NewSturctIncludeKeysOption(keys interface{}) *structKeysOption

@var string[]|string keys

func NewXmlCDataKeysOption

func NewXmlCDataKeysOption(keys interface{}) *xmlCDataOption

@var string[]|string keys

func NewXmlExcludeKeysOption

func NewXmlExcludeKeysOption(keys interface{}) *xmlKeysOption

@var string[]|string keys

func NewXmlIncludeKeysOption

func NewXmlIncludeKeysOption(keys interface{}) *xmlKeysOption

@var string[]|string keys

func NewXmlKeyTagMappingOption

func NewXmlKeyTagMappingOption(mappings [][2]string) *xmlKeyTagOption

func RemoveKeys

func RemoveKeys(map1 map[string]interface{}, keys interface{})

@var string[]|string keys

func RemoveKeysFromStringMapString

func RemoveKeysFromStringMapString(map1 map[string]string, keys interface{})

@var string[]|string keys

func ToStruct

func ToStruct(src map[string]interface{}, dst interface{}, opts ...structOption)

func ToXml

func ToXml(map1 map[string]interface{}, opts ...xmlOption) string

func ToXmlFromStringMapString

func ToXmlFromStringMapString(map1 map[string]string, opts ...xmlOption) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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