LEFT | RIGHT |
(no file at all) | |
1 Go for Javaneros (Javaïstes?) | 1 Go for Javaneros (Javaïstes?) |
2 #go4java | 2 #go4java |
3 | 3 |
4 Francesc Campoy | 4 Francesc Campoy |
5 Gopher and Developer Advocate | 5 Gopher and Developer Advocate |
6 Google | 6 Google |
7 @francesc | 7 @francesc |
8 campoy@golang.org | 8 campoy@golang.org |
9 | 9 |
10 * What is Go? | 10 * What is Go? |
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
252 Receivers behave like any other argument. | 252 Receivers behave like any other argument. |
253 | 253 |
254 Pointers allow modifying the pointed receiver: | 254 Pointers allow modifying the pointed receiver: |
255 | 255 |
256 func (p *Person) IncAge() { | 256 func (p *Person) IncAge() { |
257 p.age++ | 257 p.age++ |
258 } | 258 } |
259 | 259 |
260 The method receiver is a copy of a pointer (pointing to the same address). | 260 The method receiver is a copy of a pointer (pointing to the same address). |
261 | 261 |
262 Method calls on nil receivers are perfectly valid (and useulf!). | 262 Method calls on nil receivers are perfectly valid (and useful!). |
263 | 263 |
264 func (p *Person) Name() string { | 264 func (p *Person) Name() string { |
265 if p == nil { | 265 if p == nil { |
266 return "anonymous" | 266 return "anonymous" |
267 } | 267 } |
268 return p.name | 268 return p.name |
269 } | 269 } |
270 | 270 |
271 * Interfaces | 271 * Interfaces |
272 | 272 |
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
658 | 658 |
659 * What to do next? | 659 * What to do next? |
660 | 660 |
661 Learn Go on your browser with [[http://tour.golang.org][tour.golang.org]] | 661 Learn Go on your browser with [[http://tour.golang.org][tour.golang.org]] |
662 | 662 |
663 Find more about Go on [[http://golang.org][golang.org]] | 663 Find more about Go on [[http://golang.org][golang.org]] |
664 | 664 |
665 Join the community at [[https://groups.google.com/forum/#!forum/Golang-nuts][gol
ang-nuts]] | 665 Join the community at [[https://groups.google.com/forum/#!forum/Golang-nuts][gol
ang-nuts]] |
666 | 666 |
667 Link to the slides [[http://talks.golang.org/2014/go4java.slide]] | 667 Link to the slides [[http://talks.golang.org/2014/go4java.slide]] |
LEFT | RIGHT |