Guest User

Untitled

a guest
Jun 25th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. package main
  2.  
  3. import (
  4. "fmt"
  5. )
  6.  
  7. type Test func()
  8.  
  9. func (t Test) Hello() {
  10. t()
  11. }
  12.  
  13. func Hola() {
  14. fmt.Println("from hola")
  15. }
  16.  
  17. func main() {
  18. var t Test = Hola
  19. t.Hello()
  20. }
Add Comment
Please, Sign In to add comment