SX
There is no call-by-reference in Go. In Go everything is passed "by value". Take a look at this https://dave.cheney.net/2017/04/29/there-is-no-pass-by-reference-in-go
CommentThreadMay 3, 20171What is the default method of parameter passing, in Go? Is it call by reference, or call by value?