Every system has its skeletons, parts of the code we are not proud of. Sometimes, they are parts of the code that we would have done better if we'd just had more time. This project is no different. Let's examine the issues that we currently know about.
Known issues
Testability
Despite being a small and working service, we have quite a few issues, perhaps the most egregious of which is its difficulty to test. Now, we don't want to start introducing test-induced damage, but we do want to have a system that we are confident in. To achieve this, we are going to need to reduce the complexity and verbosity of the tests. Take a look at the following test:
func TestGetHandler_ServeHTTP(t *testing.T) {
// ensure the...