6 ms·
I really like the interface-based auto-registration pattern, so elegeant! The implementation of HoverHandler seems clever... no manual wiring. That's the kind
by pmoati 6mo ago
I really like the interface-based auto-registration pattern, so elegeant!
The implementation of HoverHandler seems clever... no manual wiring.
That's the kind of API design that makes Go's implicit interfaces shine.
I'm curious: How does error recovery work when a handler panics? Does the server keep the connection alive, or does it tear down?
- rumno0 6mo agoThanks - If its a straight error, then the error response is returned and we're all happy! If the handler panics, the server crashes, so that's something I'm off to fix now! Thanks!!!!