merge

package module
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2022 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Maps

func Maps(dest, src interface{}) (interface{}, error)

Maps returns a new map that is the result of merging the two provided inputs, which must both be maps. Returns an error if either of the inputs are not maps. If the types of the input values differ, an error is returned. Merging is performed by creating a new map, setting its contents to be "dest", and then setting the key/value pairs in "src" on the new map (unless the value is a map, in which case a merge is performed recursively).

Types

This section is empty.

Jump to

Keyboard shortcuts

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