package mergemaps

import "github.com/Microsoft/hcsshim/internal/mergemaps"

Index

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.

Source Files

merge.go

Version
v0.12.9 (latest)
Published
Oct 30, 2024
Platform
linux/amd64
Imports
1 packages
Last checked
14 hours ago

Tools for package owners.