https://github.com/felipeaz/observer-pattern
Implementation of the Observer Pattern in Golang
https://github.com/felipeaz/observer-pattern
design-patterns golang observer-pattern
Last synced: 3 months ago
JSON representation
Implementation of the Observer Pattern in Golang
- Host: GitHub
- URL: https://github.com/felipeaz/observer-pattern
- Owner: felipeaz
- Created: 2022-07-20T15:43:37.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-07-21T11:00:33.000Z (almost 3 years ago)
- Last Synced: 2025-01-07T05:22:03.812Z (4 months ago)
- Topics: design-patterns, golang, observer-pattern
- Language: Go
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# observer-pattern
Implementation of the Observer Pattern in GolangObserver is a behavioral design pattern that lets you define a subscription mechanism to notify multiple objects about
any events that happen to the object they’re observing.This example simulates a busy traffic where cars keep looking at the traffic light. The traffic light sends signal
to every car that is listening to it, when it is green, all car moves. When it's red, the cars have to stop and listen
to the traffic light.