November 2018
Intermediate to advanced
346 pages
8h 12m
English
Go doesn't have classes, but if we squint a little and replace the word class with objects (structs, functions, interfaces or packages), then the concept still applies.
Why do we want our objects to do only one thing? Let's look at a couple of objects that do one thing:

These objects are simple and easy to use, and have a wide range of uses.
Designing objects so that they all do only one thing sounds okay in the abstract. But you are probably ...
Read now
Unlock full access