On Wed, Jun 19, 2019 at 4:55 AM hui zhang <fastfad...@gmail.com> wrote:
> is there a goroutine scope global veriable ? so I can do this ? Go has no global scope. The closest is universe scope but that scope contains only predeclared identifiers. I think you are meaning package scope. Goroutines can access variables visible to them in any scope, but the only ones that are private to the goroutine have block 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. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CAA40n-VtHTQanJGxiEa2xz0LU5xTLLSYVYm3bYtXma5M7VVa3Q%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.