Design Pattern: Visitor Pattern in Go

Visitor pattern moves some logic of certain types of objects to an external entity(named the visitor), and that external entity/visitor is responsible for performing operations on the object. This pattern separates the logic to work with certain types of objects. This article demonstrates Visitor pattern implementations in GoLang.

Design Pattern: Observer Pattern in Go

Observer pattern is used to set up one or more notifiers/publishers, and some subscribers for those notifiers. So that the subscribers get the change info when the notifier triggers a change event. The notifiers are subscribers are decoupled from each other, so the subscriber does not need to know how many notifiers/publishers are there. This article demonstrates Observer pattern implementations in Golang.