Osvaldo Santana Neto

28%
Flag icon
Arguments are passed by value, so the function receives a copy of each argument; modifications to the copy do not affect the caller. However, if the argument contains some kind of reference, like a pointer, slice, map, function, or channel, then the caller may be affected by any modifications the function makes to variables indirectly referred to by the argument.
The Go Programming Language
Rate this book
Clear rating
Open Preview