Re: [go-nuts] [Job] remote Go developer at Mattel (fulltime, US-only)

2019-06-19 Thread Nate Finch
It's pretty great. and they really take work-life balance seriously. We launched a major project last week, and almost no one worked over time, certainly not any of significance, and no weekend work. On Wednesday, June 19, 2019 at 2:57:11 AM UTC-4, Henrik Johansson wrote: > > Wow! I live

Re: [go-nuts] Re: is there a goroutine scope global veriable ?

2019-06-19 Thread Michael Jones
For the OP: A thought to share on the general topic: Go is pioneering a sufficiently different model of concurrent computation that it may not make much sense to ask for or seek equivalencies with classic thread/process models. This says nothing against the standard model, nor against the

Re: [go-nuts] Re: godoc memory leak

2019-06-19 Thread 'Christopher Dang' via golang-nuts
Thanks for the feedback. For anyone experiencing this issue you can follow it here: https://github.com/golang/go/issues/32692 On Tue, Jun 18, 2019 at 9:34 PM Agniva De Sarker < agniva.quicksil...@gmail.com> wrote: > I can see that files are getting added. Which means index size is expected > to

Re: [go-nuts] Re: is there a goroutine scope global veriable ?

2019-06-19 Thread Robert Engels
Side-managed thread/execution context has been around since the concept of a thread. It is highly useful, and is more robust and secure than a Context object passed among methods.If Go had any concept of a "secure runtime" it would be essential, but it doesn't, so you make do with what you

[go-nuts] Re: is there a goroutine scope global veriable ?

2019-06-19 Thread jake6502
This has been discussed many times before. Searching "local storage" on this group brings up many discussions, including: https://groups.google.com/d/topic/golang-nuts/Nt0hVV_nqHE/discussion https://groups.google.com/d/topic/golang-nuts/_Vv7Bzn8yH4/discussion

Re: [go-nuts] Do I pass nil arguments method ?

2019-06-19 Thread Jan Mercl
Are you using some machine translator? Many sentences in the article make little sense. Some others do, but are either incorrect or the use wrong terminology. Also capitalization of some words is not right. Please do not post links to your blog to this mailing list, thank you. On Wed, Jun 19,

[go-nuts] Do I pass nil arguments method ?

2019-06-19 Thread Ali Hassan
Do you want to pass nil arguments then checkout my blog https://koohinoorgo.blogspot.com/2019/06/do-receiver-nil-argument.html. Good Programmer, who write code for humans, not for machines -- You received this message because you are subscribed to the Google Groups "golang-nuts"

Re: [go-nuts] Possible memory leak in HTTPS connections

2019-06-19 Thread qihua . lin
I run into this problem now. How do you solve it? On Friday, October 24, 2014 at 3:52:27 AM UTC+8, James Bardin wrote: > > > > On Thursday, October 23, 2014 3:23:48 PM UTC-4, Vincent Batts wrote: >> >> From my experience, it is due to the duplicate instances of >> http.Transport. By default

[go-nuts] Re: Panic during proto Marshal

2019-06-19 Thread Agniva De Sarker
This happens when you are trying to access a nil pointer. Check from where the stack trace originates, go to that line and add a "!= nil" check. I guess that is what's happening. P.S. Your stack trace is in a json format which is for machines to read, not humans. While reporting issues, it

Re: [go-nuts] Re: is there a goroutine scope global veriable ?

2019-06-19 Thread hui zhang
this implement does not solve the problem. still need pass the parameter in all functions. func (g *gls) run()orfunc run (g *gls) 在 2019年6月19日星期三 UTC+8下午4:55:09,Jan Mercl写道: > > On Wed, Jun 19, 2019 at 10:41 AM hui zhang > wrote: > > > but, very few document mention , how to do it as

Re: [go-nuts] Re: is there a goroutine scope global veriable ?

2019-06-19 Thread Jan Mercl
On Wed, Jun 19, 2019 at 11:15 AM hui zhang wrote: > Is there a golang context way to do it? Some bits are at https://golang.org/pkg/context/#pkg-examples -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop

Re: [go-nuts] Re: is there a goroutine scope global veriable ?

2019-06-19 Thread hui zhang
thank you very much. Is there a golang context way to do it? 在 2019年6月19日星期三 UTC+8下午4:55:09,Jan Mercl写道: > > On Wed, Jun 19, 2019 at 10:41 AM hui zhang > wrote: > > > but, very few document mention , how to do it as goroutine local storage > . Can anyone give an example to solve my problem

Re: [go-nuts] Re: is there a goroutine scope global veriable ?

2019-06-19 Thread Jan Mercl
On Wed, Jun 19, 2019 at 10:41 AM hui zhang wrote: > but, very few document mention , how to do it as goroutine local storage . > Can anyone give an example to solve my problem , refer the code I attached? Make the goroutine a method of a struct that contains any context the goroutine needs.

Re: [go-nuts] Re: is there a goroutine scope global veriable ?

2019-06-19 Thread hui zhang
thanks , I also google blew links. It is called goroutine local storage (gls) and many third party implement(https://github.com/jtolds/gls) however, the golang official suggest to use go context. but, very few document mention , how to do it as goroutine local storage . Can anyone give an

Re: [go-nuts] Re: is there a goroutine scope global veriable ?

2019-06-19 Thread Jan Mercl
On Wed, Jun 19, 2019 at 4:55 AM hui zhang 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

Re: [go-nuts] [Job] remote Go developer at Mattel (fulltime, US-only)

2019-06-19 Thread Henrik Johansson
Wow! I live outside the US but this really makes me want to work for Mattel. Sounds like a great place to work. On Tue, Jun 18, 2019, 22:07 Nate Finch wrote: > Want to work with me at Mattel on a Go platform? > > Mattel’s Connected Products Platform team is *the model* of where Mattel > is

[go-nuts] Panic during proto Marshal

2019-06-19 Thread Mayank Jha
I am getting the *runtime error: invalid memory address or nil pointer dereference, *with the following stack trace, but only occasionally when I try to proto.Marshal() a proto message. [{"file":"/go/src/github.com/carousell/Cats/Cats/analytics/analytics.go", >