Skip to content

Glossary: Software Design Patterns in Go

God object

Also written: god function

One type or package that does far too much, such as a `Shop` with 40 methods for pricing, stock and email. The fix is to split it by reason to change.

Where the book teaches it

Related terms

Single responsibility principle (SRP)Anti-pattern