Advertisement
cwchen

[Go] function object

Nov 8th, 2017
458
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Go 0.11 KB | None | 0 0
  1. package main
  2.  
  3. import (
  4.     "fmt"
  5. )
  6.  
  7. func main() {
  8.     f := func() {
  9.         fmt.Println("Hello World")
  10.     }
  11.  
  12.     f()
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement