Quantcast
Channel: Understanding the observer pattern written in Go - Stack Overflow
Browsing latest articles
Browse All 2 View Live

Answer by enzo for Understanding the observer pattern written in Go

Basically because a Publisherimplicitly implements a NotificationPublisher.From A Tour of Go:Interfaces are implemented implicitlyA type implements an interface by implementing its methods. There is no...

View Article



Understanding the observer pattern written in Go

I was trying to learn observer pattern from a YouTube video. Here is the code till I have watched:func main() { var notifTest NotificationPublisher notifTest = newPublisher()}type...

View Article
Browsing latest articles
Browse All 2 View Live




Latest Images