Re: [go-nuts] net/http: no Client API to close server connection based on Response #21978

2024-04-04 Thread Jim Minter
For reference, https://go.dev/play/p/ijSN9CsQFbc is the sort of thing we're going to try out. I think it might help in our somewhat exceptional circumstance (500s like this are rare, haven't yet been able to diagnose and fix the server-side root cause, transport is bound to specific API client, et

Re: [go-nuts] [generics] type constraint for structs

2024-04-04 Thread atd...@gmail.com
It allows to return the value pointed at (*Element) but I still don't have access to the *Element field adddress of let's say var d Div so can't change d.Element to swap it with another value. (by taking Ref(&d,e) where e is some *Element) It's usable as a constraint but that's not sufficient.

Re: [go-nuts] Re: Design patterns in Go

2024-04-04 Thread alex-coder
Hi All, in case someone is in interest of the subject I repost here what I have found in the internet some time ago. >>I apologize for being so intrusive. >>I will only provide links to educational resources, in case it would be interesting for anyone. >>GitHub - AlexanderGrom/go-patterns: Desig