moov-io / iso8583

A golang implementation to marshal and unmarshal iso8583 message.
https://moov.io
Apache License 2.0
304 stars 100 forks source link

Deprecate `SetData` method #278

Closed alovak closed 9 months ago

alovak commented 10 months ago

SetData is there to support compatibility with our first version of Marshal/Unmarshal implementation. In this PR I described why using Data and SetData was not good. In short, it has some side effects such as linking objects using pointers.

The following should be done:

This change should not break any integrations unless they still use the version with the Data() method that was deprecated and deleted.

alovak commented 9 months ago

closed in #288