deepmerge

package
v0.0.0-...-7a50bc8 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NilDestinationError = errors.New("cannot use a nil map as a destination")

Functions

func Merge

func Merge(dst, src map[string]interface{}) error

Merge performs a deep merge of two maps, where it will copy the values in the src map into the dst map. Any values in the src map will overwrite the values in the dst map, except for values that are of type map[string]interface{}. This function is primarily intended for deep merging values from JSON, so it operates only on map[string]interface{} and not maps of other types. All other types are simply overwritten in the dst, including slices.

Types

This section is empty.

Jump to

Keyboard shortcuts

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