Last active
August 29, 2015 14:24
-
-
Save huytd/651d1eb23fb203b18ef1 to your computer and use it in GitHub Desktop.
Tyrion Lannister in Go
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
package main | |
import "fmt" | |
type Lannister struct{} | |
func (l *Lannister) Roar() { | |
fmt.Println("Hear me roar!!!") | |
} | |
func main() { | |
var tyrion = Lannister{} | |
tyrion.Roar() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment