golang-cheat-sheet icon indicating copy to clipboard operation
golang-cheat-sheet copied to clipboard

Functions As Values And Closures gives out whole bunch of errors

Open sandric opened this issue 11 years ago • 1 comments

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 avatar Apr 19 '15 17:04 sandric

@sandric, with the fix merged today, do you think we can close this issue?

codingsince1985 avatar May 04 '15 00:05 codingsince1985