Create main.go

Go implementation using a closure and no global state.
Update main.go

Minor misunderstanding about the return of g()('al'). Fixed.
Merge pull request #143 from dwforbes/master

Create main.go