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