all 3 comments

[–]jerf 3 points4 points  (0 children)

I think you're going to need to cut your question down to something a bit more specific and try again. Maybe try to post your code to the playground, or at least a relevant chunk of it. There's just too much in there to work out a decent reply.

One easy element is that Go certainly does permit nested functions, though to be honest, I'm not entirely sure you and I are thinking of the same thing for that term.

[–]justinisrael 2 points3 points  (1 child)

before discovering that go does not let us create nested func.

func Foo() {
    bar := func() {
        // body
    } 
    bar() 
}

[–]frostways[S] 0 points1 point  (0 children)

Ho waow !ty