Re:Better HTTP server routing in Go 1.22
by velcrovan on Monday October 16, 2023 @11:07AM
(#37900855)
What kinds of routes would you generate dynamically that couldn't be implemented as wildcards in the match pattern? Genuine question
> or let the user know
Many are misunderstanding when the panic happens. It does not happen when the user requests the path, it happens when the path is registered. The user will never arrive at that path to be notified. You will be notified that you have a logic error at the application startup. It can be caught by the simplest of tests before you deploy your application.
With the panic, I have to write some spaghetti code with a recover in a goroutine.