Is there a built in function in go for making copies of arbitrary maps?
I would be able to write one by hand but I found out earlier I was looking a similar question
To add to the answer by Simpfally, some gotchas with encoding/gob are that with structs, only exported fields are copied. And channels can't be encoded.
encoding/gob