golang-cheat-sheet
golang-cheat-sheet copied to clipboard
Functions As Values And Closures gives out whole bunch of errors
Hi, I'm new to go, but I can't compile source code from 'Functions As Values And Closures' chapter.
I had to change:
outer_var = 444 to outer_var := 444,
func outer() func() int, int{ to func outer() (func() int, int){
and in both another_scope and outer functions I'm facing undefined foo error. Am I doing smth wrong?
My go version output is go version go1.4.2 linux/amd64
@sandric, with the fix merged today, do you think we can close this issue?