You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a long running process that uses swissmaps to store values before they're committed to a datastore. In the event that the process is stopped, I would like to write a gob file with the swissmaps, and upon restart decode the gob file in to the swissmaps.
Currently, this is not possible because swiss.Map doesn't have any exported fields. To remedy this, I have to convert the swissmap to a regular map and then save it to the gob file, and on restart read the gob file maps and put the values into a swissmap.
The text was updated successfully, but these errors were encountered:
I have a long running process that uses swissmaps to store values before they're committed to a datastore. In the event that the process is stopped, I would like to write a gob file with the swissmaps, and upon restart decode the gob file in to the swissmaps.
Currently, this is not possible because
swiss.Map
doesn't have any exported fields. To remedy this, I have to convert the swissmap to a regular map and then save it to the gob file, and on restart read the gob file maps and put the values into a swissmap.The text was updated successfully, but these errors were encountered: