json.RawMessage Metadata
patrick-ogrady
released this
06 May 19:08
·
1505 commits
to master
since this release
- To make metadata fields more useful, the type was changed from
map[string]interface{}
tojson.RawMessage
(#19). Issue #16 (submitted by @yorhodes) has more context on why this is useful. - This release also adds support for a deterministic hash function for comparing the equality of any two Rosetta types (#19). This is useful because the
json.RawMessage
type contained in many types causesreflect.DeepEqual
to not work correctly asjson.RawMessage
is interpreted as a[]byte
instead of by whatever native go type it represents.