fasthttp
fasthttp copied to clipboard
Copy maps using Go 1.21's new "maps" package
An attempted implementation of #1599 .
Also updated lint to 1.21, it seemed to have some issues before?
What is the benefit of this? It just complicates the code and increases the size. And map.Copy just does exactly the same so there is no speed difference. I think it's only useful if we don't have to support older Go versions anymore which isn't soon.
What is the benefit of this? It just complicates the code and increases the size. And map.Copy just does exactly the same so there is no speed difference. I think it's only useful if we don't have to support older Go versions anymore which isn't soon.
True! I didn't check out the code of maps.Copy
when opening my issue and think this can be closed now after looking at it.