Closed alovak closed 2 years ago
What:
message.Marshal(data)
SetData
Why: Switching to Marshal from SetData will be painless if we support the same behavior by accepting both struct and pointer to struct.
Marshal
What:
message.Marshal(data)
accept struct as arg in addition to a pointer to struct. Such behavior was in theSetData
method before and it was pretty handy.Why: Switching to
Marshal
fromSetData
will be painless if we support the same behavior by accepting both struct and pointer to struct.