Skip to content

Instantly share code, notes, and snippets.

@jordanorelli
Created April 7, 2012 17:08
Show Gist options
  • Select an option

  • Save jordanorelli/2330491 to your computer and use it in GitHub Desktop.

Select an option

Save jordanorelli/2330491 to your computer and use it in GitHub Desktop.
inner function call
package main
import "fmt"
func main() {
var fn func(int)
fn = func(x int) {
fmt.Println(x)
fn(x+1)
}
fn(0)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment