Update Marshal
method for the fields to accept Go native types
#279
Milestone
Marshal
method for the fields to accept Go native types
#279
We want to support Go's native types such as
string
,int
, etc. when we set data to the field usingMarshal
methodSo, the idea is to implement the following:
We want to be able to use:
int
,*int
,string
,*string
forfield.Numeric
,field.String
[]byte
,string
forfield.Binary
,field.Hex
(string
should be hex and if we fail to decode it, return error)Reference implementation is in this PR: https://github.com/moov-io/iso8583/pull/273/files
The text was updated successfully, but these errors were encountered: