There are no if err != nil error checks until the end of our processing pipeline. That’s by design.
The benefits of using a monadic pipeline are as follows:
Enables us to clearly express business logic without the clutter
Eliminates if err != nil error checks after every operative line of code
Provides structure for pipeline processing
Orders all of our Next steps in our workflow
Provides a framework for plugging in reusable components
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.