Map

package
v0.0.1-20240408-0001 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clone

func Clone(m map[interface{}]interface{}) map[interface{}]interface{}

func CloneStringInterface

func CloneStringInterface(m map[string]interface{}) map[string]interface{}

func ConvertMapValuesBasedOnModel

func ConvertMapValuesBasedOnModel(
	input map[string]interface{},
	modelStruct interface{},
	opts *MapConvertOpts,
) (map[string]interface{}, error)

func CopyStringInterface

func CopyStringInterface(from map[string]interface{}, to map[string]interface{})

func IsMap

func IsMap(v interface{}) bool

func Keys

func Keys()

func RecursiveCopyToExistent

func RecursiveCopyToExistent(from map[string]interface{}, to map[string]interface{}) map[string]interface{}

it will copy the values from -> to only for existent to keys!!! no more!

Types

type MapConvertOpts

type MapConvertOpts struct {
	IfFailedConversionSetValFromStruct bool
	DeepCopy                           bool
}

Jump to

Keyboard shortcuts

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