package runtimeimport ()// JsonMerge merges two JSON representation into a single object. `data` is the// existing representation and `patch` is the new data to be merged in//// Deprecated: Use JSONMerge instead.func (, json.RawMessage) (json.RawMessage, error) {returnJSONMerge(, )}// JSONMerge merges two JSON representation into a single object. `data` is the// existing representation and `patch` is the new data to be merged infunc (, json.RawMessage) (json.RawMessage, error) { := jsonmerge.Merger{CopyNonexistent: true, }if == nil { = []byte(`{}`) }if == nil { = []byte(`{}`) } , := .MergeBytes(, )if != nil {returnnil, }return , nil}
The pages are generated with Goldsv0.7.6. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds.