Skip to content

felipeaz/observer-pattern

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

observer-pattern

Implementation of the Observer Pattern in Golang

Observer 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.

About

Implementation of the Observer Pattern in Golang

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages