Osvaldo Santana Neto

35%
Flag icon
If the receiver p is a variable of type Point but the method requires a *Point receiver, we can use this shorthand: p.ScaleBy(2) and the compiler will perform an implicit &p on the variable.
The Go Programming Language
Rate this book
Clear rating
Open Preview