Use a package exported (public) variable.

> On May 23, 2020, at 2:34 PM, adithyasasha...@gmail.com wrote:
> 
> Is there a way to create a global variable inside go routine stack? so that i 
> can access any time, without passing around between methods/functions. Crazy 
> thought !!!..
> 
> -- 
> 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 
> <mailto:golang-nuts+unsubscr...@googlegroups.com>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/golang-nuts/1f790fd5-437f-4a8c-8122-5d6b05841117%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/golang-nuts/1f790fd5-437f-4a8c-8122-5d6b05841117%40googlegroups.com?utm_medium=email&utm_source=footer>.

-- 
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/D9AD9F99-2439-4D7C-956F-33D77E8EA814%40ix.netcom.com.

Reply via email to