In my previous story on Go/Golang concurrent map, I was saving my data in a non persistent variable where all the data saved will be lost if I kill my Go/Golang process.
I stumble upon a key value database named Bolt which codes I had simplified. Integrating these below into the concurrent map example I should get a persistent concurrent map.
To install Bolt DB, run the command below
go get github.com/boltdb/bolt
Simplified codes below