packagemergoimport("encoding/json""testing")var(request=`{"timestamp":null, "name": "foo"}`maprequest=map[string]interface{}{"timestamp":nil,"name":"foo","newStuff":"foo",})funcTestIssue17MergeWithOverwrite(t*testing.T){varsomethingmap[string]interface{}iferr:=json.Unmarshal([]byte(request),&something);err!=nil{t.Errorf("Error while Unmarshalling maprequest %s",err)}iferr:=MergeWithOverwrite(&something,maprequest);err!=nil{t.Errorf("Error while merging %s",err)}}