Skip to content

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

Open
@sandric

Description

@sandric

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions