No need for ability to export as JSON
This commit is contained in:
parent
bbae9a5fac
commit
701125b879
2 changed files with 0 additions and 6 deletions
|
@ -50,11 +50,6 @@ func (d *Doc) Copy() (i interface{}) {
|
|||
return deep.Copy(d.data)
|
||||
}
|
||||
|
||||
// JSON converts the data object to a JSON byte slice.
|
||||
func (d *Doc) JSON() (data []byte) {
|
||||
return pack.ToJSON(d.data)
|
||||
}
|
||||
|
||||
// Encode encodes the data object to a byte slice.
|
||||
func (d *Doc) Encode() (dst []byte) {
|
||||
dst = pack.Encode(&d.data)
|
||||
|
|
|
@ -31,7 +31,6 @@ func TestConversion(t *testing.T) {
|
|||
enc := doc.Encode()
|
||||
dec := doc.Decode(enc)
|
||||
So(doc, ShouldResemble, dec)
|
||||
So(doc.JSON(), ShouldResemble, dec.JSON())
|
||||
})
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue