Re: [go-nuts] SetLang is not thread safe and memory leak

2020-05-13 Thread Lukin
Thanks. Axel Wagner 于 2020年5月14日周四 04:13写道: > I'm afraid I don't understand the question. I guess you are referring to > this PR? > https://github.com/mylukin/easy-i18n/pull/2/files > It seems wrong in multiple ways (for starters, they change the module > path), but it also seems outdated; you h

Re: [go-nuts] SetLang is not thread safe and memory leak

2020-05-13 Thread 'Axel Wagner' via golang-nuts
I'm afraid I don't understand the question. I guess you are referring to this PR? https://github.com/mylukin/easy-i18n/pull/2/files It seems wrong in multiple ways (for starters, they change the module path), but it also seems outdated; you have put several commits on master since then. >From a cas

[go-nuts] SetLang is not thread safe and memory leak

2020-05-13 Thread kddavidson722
nevermind I missunderstood, my apologies. -- 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

[go-nuts] SetLang is not thread safe and memory leak

2020-05-13 Thread kddavidson722
My guess would be that whoever called Fprintf passed a nil, or uninitialized pointer as one of the variadic 'args' parameters, which holds interface{} type. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop

[go-nuts] SetLang is not thread safe and memory leak

2020-05-13 Thread mylukin
I have just used golang for a month and I am not very familiar with this on. SetLang is not thread safe and memory leak? https://github.com/mylukin/easy-i18n/blob/master/i18n/i18n.go#L43 Please expert guidance, and how to fix it? -- You received this message because you are subscribed to the G