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
No, there is no built-in one-liner for map deep copy.
However, there is an iterative solution as well as a generic package for deep copy.