Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

No, it's definitely passed by value:

https://go.dev/play/p/mIehOwUWz95

A map is implicitly a pointer to the underlying map structure. When you pass a map, you're passing a copy of a pointer.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: