Compile and serve go http apps

When developing go web apps we need to recompile and re-serve the application to view the changes we made. This process of making changes, stop the app from running, recompile and run again can be quite annoying. We need a tool that serves the app, notices our source code changing…

Read this article

Using the go router package

The router package provides a simple URL router and HandlerFunc dispatcher for go web apps. This post explains how to use it. In its simplest form, just create a router instance and register HandlerFuncs to HTTP verb/path pairs. Use the router by calling Handle and ListenAndServe. A working example…

Read this article

URL router for golang webapps

Last week I've created an URL router and HandlerFunc dispatcher for go (golang) webapps. I considered the following ideas (heavily borrowing from express/connect): registering handlers based on HTTP verb/path combos should be easy, as this is most often used split complex HandlerFuncs into multiple smaller one which can…

Read this article