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

2024-03-27 Thread Makis Maropoulos
Same here @Abraham, ResponseType interface { ~struct{} } Obviously this doesn't work, I would love to see it working though. On Wednesday 14 September 2022 at 17:48:19 UTC+3 Abraham wrote: > I am glad I found this thread because I was just now breaking my head > figuring out wh

Re: [go-nuts] Re: Good examples of Go back ends?

2024-03-27 Thread Charles Forsyth
"forms-oriented and superficially but you can" that was supposed to read "forms-oriented but only superficially, and you can" I also forgot to mention that runnable code comes with both books, with incremental development. On Wednesday 27 March 2024 at 23:21:39 UTC Charles Forsyth wrote: > Poss

Re: [go-nuts] Re: Good examples of Go back ends?

2024-03-27 Thread Charles Forsyth
Possibly again not exactly what you're looking for, but I still like Alex Edwards' "Let's Go" and "Let's Go Further" as examples of building up realistic backend servers with the different functions you mention (routing, auth, db etc), for at least modest scale. The former is forms-oriented and

[go-nuts] Re: Problems with Golang plugins in Go 1.19 (versus Go 1.15)

2024-03-27 Thread wji...@gmail.com
I've narrowed it down somewhat. With Go 1.17.13 it works. With Go1.18 RC it fails. So something in the first release of Go 1.18 seems to have changed how trimpath / plugin version matching works, and has broken previously working functionality for us (I'm compiling exactly the same code - the *