Hide common codec methods under helpers

The pending codec -> conversion split changes the signature of
Encode and Decode to be more complicated. Create a stub helper
with the exact semantics of today and do the simple mechanical
refactor here to reduce the cost of that change.
This commit is contained in:
Clayton Coleman
2015-12-09 21:15:02 -05:00
parent 229f40e69f
commit 1e21054134
25 changed files with 103 additions and 81 deletions

View File

@@ -130,7 +130,7 @@ func (self *Scheme) rawExtensionToEmbeddedObject(in *RawExtension, out *Embedded
return err
}
err = scheme.DecodeInto(in.RawJSON, inObj)
err = DecodeInto(scheme, in.RawJSON, inObj)
if err != nil {
return err
}