jsonpatch2: github.com/VictorLowther/jsonpatch2/utils Index | Files

package utils

import "github.com/VictorLowther/jsonpatch2/utils"


Package Files


func Clone Uses

func Clone(val interface{}) interface{}

Clone performs a deep clone of a JSON-ish structure.

func Merge Uses

func Merge(src, changes interface{}) interface{}

Merge merges changes into src recursively. The original objects will be left unchanged.

func MergeJSON Uses

func MergeJSON(src, changes []byte) ([]byte, error)

MergeJSON does the same as Merge, except it accepts and returns byte arrays that

func Remarshal Uses

func Remarshal(src, target interface{}) error

Remarshal marshals src and then unmarshals it into target.

Package utils imports 2 packages (graph) and is imported by 9 packages. Updated 2017-04-05. Refresh now. Tools for package owners.