On Wed, Apr 10, 2019 at 2:42 PM Dumitru Ungureanu <itmit...@gmail.com> wrote:

The alternative is to pass `w` around as a function argument. For that
it will be necessary to create/initialize `w` in main or in a function
call made from main.

PS: Go has no global scope. The closest is universe scope, but
programs cannot define anything in universe scope. The scope of `w` in
the OP is called package scope.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to