3 ms·
Neat, stealing this.
by iaaan 2mo ago
Neat, stealing this.
- Xeoncross 2mo agoI wrote a blog on it if you're interested: https://xeoncross.com/2026/better_go_handlers.html https://xeoncross.com/2026/better_go_handlers.html
- greg9381 2mo agoThanks for the link, looks like a very pleasant framework to use! I was interested to see "Mid-fasthttp" on the slower end in the benchmarks at the bottom, do you know why that is? Btw, the Gin and Echo examples reference an "input" variable but it doesn't seem to be defined there? Maybe it was intentional, since the examples are just to give a general idea of how the handler looks in each library, but thought I would let you know just in case it wasn't.
- Xeoncross 2mo agoDue to the fact that fasthttp is not net/http compatible it is due to the conversion being required from a https://pkg.go.dev/net/http#Handler https://pkg.go.dev/net/http#Handler. It was included for information purposes as I though someone would be curious.