November 2018
Intermediate to advanced
346 pages
8h 12m
English
Before we wrap up our work on the REST package, let's take stock of where we started, and where we are now. When we started, our handlers were tightly coupled with their matching model packages and poorly tested. Both of these problems have been resolved.
Let's see whether our dependency graph is showing any signs of improvement:

Sadly, it still looks the same as before. After digging into the code, we find the culprit:
// New will create and initialize the serverfunc New(address string) *Server { return &Server{ address: address, handlerGet: NewGetHandler(&get.Getter{}), handlerList
Read now
Unlock full access