I want to deserialize a byte array into an object in golang. The serialization was done in Python code using the "marshal" library
import marshal
mpayload = marshal.dumps((key, payload, str(time.time())), 0)
I tried json.Unmarshal/gob.NewDecoder but it doesn't work.
I read the official documentation of Marshal Library which says "This is not a general "persistence" module" I understand marshal is internal to python but the serialization using marshal happened in legacy code which I cant change. Any solution ?"
I tried json.Unmarshal/gob.NewDecoder but it doesn't work.