Skip to Content
Learning Functional Programming in Go
book

Learning Functional Programming in Go

by Lex Sheehan
November 2017
Intermediate to advanced
670 pages
17h 35m
English
Packt Publishing
Content preview from Learning Functional Programming in Go

SOLID Design in Go

Ever seen comments such as If you like design patterns, use Java, not Go?

In this chapter, we will address this common sentiment regarding software design patterns and how they fit with developing high-quality Go applications.

Our goal in this chapter is to understand the following topics:

  • Why many Gophers eschew Java
  • Why Go does not support inheritance
  • The principles of good software design
  • How to apply the single responsibility principle in Go
  • The open/closed principle
  • Duck typing in Go
  • How to model behavior in Go using interfaces
  • How to compose software using the interface segregation principle
  • Inner type promotion and how to embed interfaces
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.
Start your free trial

You might also like

Learning Functional Programming

Learning Functional Programming

Jack Widman

Publisher Resources

ISBN: 9781787281394Supplemental Content