Advertisement
Guest User

Untitled

a guest
Jul 30th, 2015
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. package main
  2.  
  3. import (
  4. "fmt"
  5. )
  6.  
  7. type A struct {
  8. }
  9.  
  10. func (a *A) Magic() {
  11. fmt.Println("Do magic")
  12. }
  13.  
  14. func (a *A) AllWork() {
  15. fmt.Println("Lift some bricks")
  16. a.Magic()
  17. fmt.Println("Gently lay them down")
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement