Re: [go-nuts] Re: Why not tuples?

2022-12-06 Thread Roman Kuprov
I might be missing something, but you can just iterate over your list of structs and delete/set-to-default-value the offending field before shipping it to your client. Same as tuples afaic. On Monday, December 5, 2022 at 8:39:17 PM UTC-7 diogo...@gmail.com wrote: > Hi folks, > > Thanks for all

[go-nuts] Re: Unable to return multiple values only the first or the last

2021-11-12 Thread Roman Kuprov
You're returning right after ranging through the first value, thus ending/exiting the function. Try: https://play.golang.org/p/0n1g8HXxobI On Friday, November 12, 2021 at 10:20:10 AM UTC-7 bishwajits...@gmail.com wrote: > HI, need help in understanding what i am making mistake of not able to

[go-nuts] Re: Mocking requests in Go

2021-11-05 Thread Roman Kuprov
Hah! I just had a question about this come up at a job interview! The Baader-Meinhoff is strong with this one! On Friday, November 5, 2021 at 11:17:23 AM UTC-6 Amnon wrote: > Nice post. Good advice. > > On Friday, 5 November 2021 at 17:08:25 UTC bke...@zushealth.com wrote: > >> Sharing an intere

Re: [go-nuts] Avoiding resource leaks with racing channels

2019-07-10 Thread Roman Kuprov
Would the Context package not work for this issue? (kinda new gopher here) On Wednesday, July 10, 2019 at 1:08:38 PM UTC-6, Dan Eloff wrote: > > Yeah, agreed. I've been deep into concurrent programming for a long time > now, and into lock-free programming as well which is the most fraught kind >