News for hackers. Stuff that matters.
Re:The problem with Go’s default HTTP handlers by aniforprez on Tuesday August 09, 2022 @12:35PM (#32400208)
"net/http" doesn't seem to come with a lot of great defaults that almost every web app would use such as named path parameters which you'd need to write a bunch of code and regex to extract, middleware, routing based on HTTP method etc. This is all stuff you'd have to implement anyway

I'd much prefer using something that's an abstraction of it like Gin, Chi, Echo and the like. They're fairly performative and add very little overhead on top of the standard package

Re:The problem with Go’s default HTTP handlers by biomcgary on Tuesday August 09, 2022 @01:22PM (#32400899)
I use Gin and enjoy the conveniences. Part of the reason is that it is opinionated. However, for the standard library, I think a strong, but minimal base is more important. One could argue about how extensible net/http is, but it seems reasonable as a foundation and it has been extended in a variety of opinionated (to varying degrees) ways!