News for hackers. Stuff that matters.
Re:Fixing for Loops in Go 1.22 by xarope on Wednesday September 20, 2023 @01:37AM (#37580726)
Dealing with databases and data scanning into custom structs, you would be writing lots Scanner/Valuer custom functions which use interface{}

If you are the lucky ones not dealing with databases, I sort-of envy you...!

Re:Fixing for Loops in Go 1.22 by kiitos on Wednesday September 20, 2023 @08:57AM (#37583559)
Applications should basically never need to write custom Scanner/Valuer functions that deal in interface{}, if you find yourself doing that it's a red flag
Re:Fixing for Loops in Go 1.22 by badrequest on Thursday September 21, 2023 @01:59PM (#37601441)
I use sqlc and it makes this a non-issue.