Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Functions As Values And Closures gives out whole bunch of errors #19

Open
sandric opened this issue Apr 19, 2015 · 1 comment
Open

Functions As Values And Closures gives out whole bunch of errors #19

sandric opened this issue Apr 19, 2015 · 1 comment

Comments

@sandric
Copy link

sandric commented Apr 19, 2015

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

@codingsince1985
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants