Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to import and export maps #28

Open
kevcenteno opened this issue Feb 6, 2024 · 0 comments
Open

Ability to import and export maps #28

kevcenteno opened this issue Feb 6, 2024 · 0 comments

Comments

@kevcenteno
Copy link

kevcenteno commented Feb 6, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant