Skip to content

Instantly share code, notes, and snippets.

@huytd
Last active August 29, 2015 14:24
Show Gist options
  • Select an option

  • Save huytd/fc0f6ad39e7832b3a682 to your computer and use it in GitHub Desktop.

Select an option

Save huytd/fc0f6ad39e7832b3a682 to your computer and use it in GitHub Desktop.
Lannister external package in Go
package app
import "fmt"
type Lannister struct{}
func (l *Lannister) Roar() {
fmt.Println("Hear me roar!!!")
}
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