Untangling Handlers and HandleFuncs in Go
Go provides a very useful http package with a built-in HTTP server that can be spun up in a just a few lines of code. If you’re like me and quickly like to get your hands on some sample code, it can be a bit confusing at first glance when you see references to Handlers, HandleFuncs, Handle, and HandleFunc. In this tutorial I’ll explain what each is, how to use them, and walk through an example of creating a very basic API.