From dfa918271174ae3ee450fe681210d60b01eb2b76 Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Mon, 12 Sep 2016 16:47:22 +0100 Subject: [PATCH] Use deep copy instead of gob encode/decode --- util/data/data.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/util/data/data.go b/util/data/data.go index 6af5f575..ca13785c 100644 --- a/util/data/data.go +++ b/util/data/data.go @@ -21,6 +21,7 @@ import ( "strconv" "strings" + "github.com/abcum/surreal/util/deep" "github.com/abcum/surreal/util/pack" ) @@ -46,7 +47,7 @@ func (d *Doc) Data() interface{} { // Data returns the internal data object as an interface. func (d *Doc) Copy() (i interface{}) { - return pack.Copy(d.data) + return deep.Copy(d.data) } // JSON converts the data object to a JSON byte slice.