mergemaps

package
v0.8.21 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Merge

func Merge(fromMap, ToMap interface{}) interface{}

Merge recursively merges map `fromMap` into map `ToMap`. Any pre-existing values in ToMap are overwritten. Values in fromMap are added to ToMap. From http://stackoverflow.com/questions/40491438/merging-two-json-strings-in-golang

func MergeJSON

func MergeJSON(object interface{}, additionalJSON []byte) (interface{}, error)

MergeJSON merges the contents of a JSON string into an object representation, returning a new object suitable for translating to JSON.

Types

This section is empty.

Jump to

Keyboard shortcuts

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