Last active
December 19, 2017 10:13
-
-
Save nvcnvn/b561e0b0805c4cdfba0849314fbf81be to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type Car struct {} | |
func (c *Car) Move(to Desitation) {} | |
type Transporter struct { | |
vehicle *Car | |
} | |
func (t *Transporter) makeOutWith(pretty Lady) { | |
// ... | |
} | |
func (t *) hitAllTheBadGuysAt(dest Desination) { | |
t.vehicle.Move(dest) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment