Hacker News new | ask | show | jobs
by tapirl 2915 days ago
There are several slcie iteration ways in Go. They do have some performance differences, depending on the element types of slices. Please view the example in the end of the article for details: https://go101.org/article/value-copy-cost.html