You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
toouter_var := 444
,func outer() func() int, int{
tofunc outer() (func() int, int){
and in both
another_scope
andouter
functions I'm facingundefined foo
error. Am I doing smth wrong?My
go version
output isgo version go1.4.2 linux/amd64
The text was updated successfully, but these errors were encountered: