Yeah same problem.
On Wednesday, May 27, 2020 at 8:03:35 AM UTC+5:30, Robert Engels wrote:
>
> You want the gls package referenced earlier.
>
> Go doesn’t have it built in because the designers don’t like it or feel it
> is necessary. You can find and read the GitHub issue that covers thread/go
Thanx. This i thought but i want context as "Global" struct, which i cant
do.
Anyhow please refer https://github.com/golang/go/issues/21355
On Wednesday, May 27, 2020 at 6:34:24 AM UTC+5:30, Jon Perryman wrote:
>
>
> On Sun, May 24, 2020 at 11:05 PM >
> wrote:
> > Yeah this works, but you can s
This is issue i am referring to https://github.com/golang/go/issues/21355.
On Monday, May 25, 2020 at 10:21:19 PM UTC+5:30, Michael Jones wrote:
>
> Variables are names associated with values, values that can *vary*, that
> is, can be changed. (Unlike constants, which are *constant* values.)
>
>
https://github.com/golang/go/issues/21355, this is the issue i am reffering
to.
On Monday, May 25, 2020 at 10:38:31 PM UTC+5:30, Jake Montgomery wrote:
>
> On Sunday, May 24, 2020 at 3:46:54 PM UTC-4, adithya...@gmail.com wrote:
>>
>> if i am not wrong, Even the main itself is a go routine, which
Yeah this works, but you can say this as workaround, what i really want is,
does native go support? if not why?
On Monday, May 25, 2020 at 7:57:17 AM UTC+5:30, tokers wrote:
>
> You may try to inspect this go package: https://github.com/jtolio/gls
>
--
You received this message because you are
if i am not wrong, Even the main itself is a go routine, which have global
variables?
On Monday, May 25, 2020 at 12:23:49 AM UTC+5:30, Saied Seghatoleslami wrote:
>
> Variable scope is a textual (special if you like) concept. Go routines
> are a temporal concept. Does it make sense to think
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 gr
is it mentioned anywhere such that "map[string]struct{}" is efficeient?
On Tuesday, April 28, 2020 at 10:23:08 AM UTC+5:30, Randall O'Reilly wrote:
>
> I think map[string]struct{} takes no storage for the value and is the most
> efficient way to do this.
>
> - Randy
>
> > On Apr 27, 2020, at 7
Basically i need a slice with indexed values, so that i can check only
existence.
or a map with only keys?
How it can be done?
--
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