Persistent data structure in Go