Skip to content

Instantly share code, notes, and snippets.

@aflag
Created July 10, 2015 20:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aflag/4dd47bc14869236d96f5 to your computer and use it in GitHub Desktop.
Save aflag/4dd47bc14869236d96f5 to your computer and use it in GitHub Desktop.
package main
import (
"fmt"
)
type A struct {
}
func (a *A) Magic() {
fmt.Println("Do magic")
}
func (a *A) AllWork() {
fmt.Println("Lift some bricks")
a.Magic()
fmt.Println("Gently lay them down")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment