Re: [go-nuts] Question on handling Data Race

2021-09-11 Thread Kurtis Rader
On Sat, Sep 11, 2021 at 6:49 PM Michael Dwyer wrote: > Kurtis, > > I realized this question would arise. > Presently working with an existing code base. > The code presented in the example is a close approximation to what > actually exists, the only thing changed were the names. > Additionally, I

Re: [go-nuts] Question on handling Data Race

2021-09-11 Thread Michael Dwyer
Kurtis, I realized this question would arise. Presently working with an existing code base. The code presented in the example is a close approximation to what actually exists, the only thing changed were the names. Additionally, I checked the package and the call order is SomeFunc() -> Refresh()

Re: [go-nuts] Question on handling Data Race

2021-09-11 Thread Kurtis Rader
On Sat, Sep 11, 2021 at 5:01 PM Michael Dwyer wrote: > Presently working on a Data Race and have some questions on how to proceed. > The code example is a hypothetical mock up of the actual code under > review, but is a fair representation. > > The struct used by both functions is named Foo. > In

[go-nuts] Question on handling Data Race

2021-09-11 Thread Michael Dwyer
Presently working on a Data Race and have some questions on how to proceed. The code example is a hypothetical mock up of the actual code under review, but is a fair representation. The struct used by both functions is named Foo. In the hypothetical, SomeFunc() reads variable from foo.bar, checki

[go-nuts] How to fully release Windows file handle

2021-09-11 Thread Bryan Richardson
I'm working with this code[1] to connect to a virtio virtual serial port in a Windows VM running in QEMU. When the program first starts up, it has no problem dialing the serial port (at path), and I can stop and restart the program without issue. However, if I try to close then dial the serial p

Re: [go-nuts] smtp.SendMail not using the from argument

2021-09-11 Thread Dean Schulze
Thanks for the suggestion. Unfortunately that doesn't work for Protonmail. It automatically populates the SMTP Server field with mail.protonmail.ch but it fails to contact that server. I'll contact ProtonMail support and see if they know how to do this. On Friday, September 10, 2021 at 1:06