Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
go [2019/08/24 15:28] – [Methods] rpjday | go [2019/08/25 09:38] (current) – [Articles on Go] rpjday | ||
---|---|---|---|
Line 43: | Line 43: | ||
* [[https:// | * [[https:// | ||
* [[https:// | * [[https:// | ||
+ | * [[https:// | ||
==== Technical papers on Go ==== | ==== Technical papers on Go ==== | ||
Line 63: | Line 64: | ||
* Go does not have classes; a method is a function with a special receiver argument (such as " | * Go does not have classes; a method is a function with a special receiver argument (such as " | ||
* Value receiver versus pointer receiver (one or the other, not both) | * Value receiver versus pointer receiver (one or the other, not both) | ||
+ | * Functions with a pointer argument must take a pointer, while methods with pointer receivers take either a value or a pointer as the receiver when they are called. | ||
+ | * Methods with value receivers take either a value or a pointer as the receiver when they are called. | ||