On Tue, Jun 18, 2019 at 7:56 PM hui zhang <fastfad...@gmail.com> wrote:
> > is there a goroutine scope global veriable ? so I can do this ? > You're asking if Go supports the equivalent of thread local storage as used in Java, C++, and Python. The answer is, no. See https://stackoverflow.com/questions/31932945/does-go-have-something-like-threadlocal-from-java and https://github.com/golang/go/issues/21355 -- Kurtis Rader Caretaker of the exceptional canines Junior and Hank -- 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/CABx2%3DD-9H5xLtJ_VXVQ5HoiHe5n86TwRor58GvzkOCU1cer_fA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.