News for hackers. Stuff that matters.
Re:Go 1.8 Release Notes by artursapek on Thursday February 16, 2017 @02:06PM (#13662599)
I suggest you adopt a 3rd party router, rather than using pure Go standard library for this. https://github.com/julienschmidt/httprouter is the most popular one. It supports a custom 404 handler https://github.com/julienschmidt/httprouter/blob/master/rout...
Re:Go 1.8 Release Notes by _pctq on Thursday February 16, 2017 @02:32PM (#13662831)
Actually, go routing is not the problem, it's react routing that is : go router only knows about API endpoints, and have a catch all route to serve the web client, which then manage its routing by itself. The advantage in that is that the backend only needs to know about API routes, and the client is totally free to implement whatever routes it wants.