Skip to content

Glossary: Software Design Patterns in Go

Subject

In the observer pattern, the object whose events listeners subscribe to; it keeps the listeners and calls them. An `EventBus` is an example of a subject.

Where the book teaches it

Related terms

ObserverListenerEvent bus